public FirebaseConsumer( FirebaseClient firebaseClient, IOperationHandler operationHandler, IServiceScopeFactory factory ) { _firebaseClient = firebaseClient; _operationHandler = operationHandler; _customerPurchaseManager = factory .CreateScope() .ServiceProvider .GetRequiredService <ICustomerPurchaseManager>(); _customerPurchaseRepository = factory .CreateScope() .ServiceProvider .GetRequiredService <ICustomerPurchaseRepository>(); }
public CustomerPurchaseController(ICustomerPurchaseManager customerPurchaseManager, ICustomerPurchaseRepository customerPurchaseRepository) => (_customerPurchaseManager, _customerPurchaseRepository) = (customerPurchaseManager, customerPurchaseRepository);
public CustomerPurchaseExistsFilter(ICustomerPurchaseRepository customerPurchaseRepository, IStringLocalizer <SharedResources> localizer) => (_customerPurchaseRepository, _localizer) = (customerPurchaseRepository, localizer);