Ejemplo n.º 1
0
        public ModApiHostedService(ILogger <ModApiHostedService> logger, SqlServer sqlServer, IConfiguration config, Share.ShareService shareService)
        {
            this._logger    = logger;
            this._sqlServer = sqlServer;

            this._cts = new CancellationTokenSource();

            this._config = Startup.Config.ModApi;

            this._shareService = shareService;
        }
Ejemplo n.º 2
0
        public ModApiPaymentHostedService(ILogger <ModApiPaymentHostedService> logger, SqlServer sqlServer, IConfiguration config, Share.ShareService shareService)
        {
            this._logger    = logger;
            this._sqlServer = sqlServer;

            this._cts = new CancellationTokenSource();

            this._config = Startup.Config.ModApi;

            this._shareService = shareService;

            this._paymentConverters = new List <IPaymentConverter>();
            this._paymentConverters.Add(new TinkoffConverter());
            this._paymentConverters.Add(new RaiffeisenConverter());
            this._paymentConverters.Add(new SberbankConverter());
            this._paymentConverters.Add(new SbAcqConverter());
            this._paymentConverters.Add(new SbRegConverter());
            //this._paymentConverters.Add(new YksRegConverter());
        }