Example #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);
        }
        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);
        }
Example #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);
        }
        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);
        }