You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample project route http://localhost:1234/api/stop fails to stop the running server because the instance is being pulled from a different service provider than the one used to generate the running server (ergo, different instance).
The following fix will be in the RestServerBuilder.Build() method of the next version:
// Override with instances
Services.AddSingleton<IRestServer>(server);
Services.AddSingleton<IRouter>(server.Router);
Services.AddSingleton<IRouteScanner>(server.RouteScanner);
This will override the previous service registration of the interface to a concretion with a registration to an instance.
The text was updated successfully, but these errors were encountered:
Found in 5.0.0-rc.7
The sample project route http://localhost:1234/api/stop fails to stop the running server because the instance is being pulled from a different service provider than the one used to generate the running server (ergo, different instance).
The following fix will be in the
RestServerBuilder.Build()
method of the next version:This will override the previous service registration of the interface to a concretion with a registration to an instance.
The text was updated successfully, but these errors were encountered: