Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 8db5c26

Browse files
specifying server version
1 parent 0d798be commit 8db5c26

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/SqlStreamStore.Server/Program.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal class Program : IDisposable
1515

1616
public static async Task<int> Main(string[] args)
1717
{
18-
using(var program = new Program(args))
18+
using (var program = new Program(args))
1919
{
2020
return await program.Run();
2121
}
@@ -39,13 +39,14 @@ private async Task<int> Run()
3939
{
4040
try
4141
{
42-
using(var streamStore = await _factory.Create(_cts.Token))
43-
using(var host = new WebHostBuilder()
42+
using (var streamStore = await _factory.Create(_cts.Token))
43+
using (var host = new WebHostBuilder()
4444
.UseKestrel()
4545
.UseStartup(new SqlStreamStoreServerStartup(streamStore,
4646
new SqlStreamStoreMiddlewareOptions
4747
{
48-
UseCanonicalUrls = _configuration.UseCanonicalUris
48+
UseCanonicalUrls = _configuration.UseCanonicalUris,
49+
ServerAssembly = typeof(Program).Assembly
4950
}))
5051
.UseSerilog()
5152
.Build())
@@ -57,7 +58,7 @@ await Task.WhenAll(
5758
return 0;
5859
}
5960
}
60-
catch(Exception ex)
61+
catch (Exception ex)
6162
{
6263
Log.Fatal(ex, "Host terminated unexpectedly.");
6364
return 1;

0 commit comments

Comments
 (0)