public PushNotificationsController(IOptions <WebPushNotificationConfig> configuration, ISqlServerStoreRepository storeRepository, IWebPushService pushservice, IWebPushMessagesQueue pushmessagesqueue, ILogger <PushNotificationsController> logger) { this._logger = logger; this._configuration = configuration.Value; this._pushservice = pushservice; //this._pushstore = pushstore; this._pushmessagesqueue = pushmessagesqueue; this._storeRepository = storeRepository; }
public void Dispose() { StoreRepository = null; if (!(_serviceScope is null)) { _serviceScope.Dispose(); _serviceScope = null; } }
public DataChamCongsAppService( IRepository <DataChamCong> dataChamCongRepository, IRepository <TruongGiaoDich> truongGiaoDichRepository, IRepository <OrganizationUnit, long> organizationUnitRepository, IDataChamCongsExcelExporter dataChamCongsExcelExporter, IWebHostEnvironment env, ISqlServerStoreRepository sqlServerStoreRepository, IHoSosAppService hoSosAppService) { _hoSosAppService = hoSosAppService; _dataChamCongRepository = dataChamCongRepository; _truongGiaoDichRepository = truongGiaoDichRepository; _organizationUnitRepository = organizationUnitRepository; _dataChamCongsExcelExporter = dataChamCongsExcelExporter; _sqlServerStoreRepository = sqlServerStoreRepository; connectionString = env.GetAppConfiguration().GetConnectionString("Default"); }
public SQLServerStoreAccessor(IServiceScope serviceScope) { _serviceScope = serviceScope; StoreRepository = _serviceScope.ServiceProvider.GetService <ISqlServerStoreRepository>(); }
public SQLServerStoreAccessor(ISqlServerStoreRepository pushstore) { StoreRepository = pushstore; }