public static IApplicationBuilder UseMongoDbStorage(this IApplicationBuilder app)
 {
     using (var serviceScope = app.ApplicationServices.GetRequiredService <IServiceScopeFactory>().CreateScope())
     {
         PatchaWalletDbClient client = serviceScope.ServiceProvider.GetService <PatchaWalletDbClient>();
     }
     return(app);
 }
 public CreateStockHandler(PatchaWalletDbClient client)
 {
     _client = client;
 }
예제 #3
0
 public GetStockHandler(PatchaWalletDbClient client)
 {
     _client = client;
 }