This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/SqlStreamStore.Server Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments