Exemplo n.º 1
0
        public CommonSmsService(ISystemParameters systemParameters, ILogService logService, IUnitOfWork unitOfWork)
        {
            this.systemParameters = systemParameters;
            this.logService       = logService;
            this.unitOfWork       = unitOfWork;
            this.tradeService     = new TradeService(unitOfWork, logService);

            this.uniqueJobList = new UniqueJobList(systemParameters, logService, unitOfWork);
        }
Exemplo n.º 2
0
        public EfSmsBackgroundJob(ISystemParameters systemParameters, IUnitOfWork unitOfWork, ILogService logService)
        {
            System.Threading.Thread.CurrentThread.CurrentCulture   = new System.Globalization.CultureInfo("en-US");
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

            this.systemParameters = systemParameters;
            this.unitOfWork       = unitOfWork;
            this.logService       = logService;
            this.tradeService     = new TradeService(unitOfWork, logService);

            this.uniqueJobList = new UniqueJobList(systemParameters, logService, unitOfWork);
            this.sendMessageStatisticService = new SendMessageStatisticService(logService, unitOfWork);
        }
Exemplo n.º 3
0
        public Every8dSmsProvider(ISystemParameters systemParameters, ILogService logService, IUnitOfWork unitOfWork, SmsProviderType smsProviderType)
        {
            this.userName = systemParameters.Every8dUserName;
            this.password = systemParameters.Every8dPassword;

            this.systemParameters = systemParameters;
            this.logService       = logService;
            this.unitOfWork       = unitOfWork;
            this.smsProviderType  = smsProviderType;

            this.sendMessageStatisticService = new SendMessageStatisticService(logService, unitOfWork);

            this.tradeService = new TradeService(unitOfWork, logService);
        }
Exemplo n.º 4
0
        public InfobipSmsProvider(ISystemParameters systemParameters, ILogService logService, IUnitOfWork unitOfWork, SmsProviderType smsProviderType)
        {
            if (smsProviderType == SmsProviderType.InfobipHighQuality)
            {
                this.userName = systemParameters.InfobipHighQualityUserName;
                this.password = systemParameters.InfobipHighQualityPassword;
            }
            else
            {
                this.userName = systemParameters.InfobipNormalQualityUserName;
                this.password = systemParameters.InfobipNormalQualityPassword;
            }

            this.configuration = new Configuration(userName, password);
            this.smsClient     = new SMSClient(configuration);

            this.systemParameters            = systemParameters;
            this.logService                  = logService;
            this.unitOfWork                  = unitOfWork;
            this.smsProviderType             = smsProviderType;
            this.sendMessageStatisticService = new SendMessageStatisticService(logService, unitOfWork);

            this.tradeService = new TradeService(unitOfWork, logService);
        }