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; }
public GetStockHandler(PatchaWalletDbClient client) { _client = client; }