コード例 #1
0
ファイル: DispatchController.cs プロジェクト: robela/cats
 public DispatchController(IDispatchAllocationService dispatchAllocationService, IDispatchService dispatchService,
     IUserProfileService userProfileService, IOtherDispatchAllocationService otherDispatchAllocationService,
     IDispatchDetailService dispatchDetailService, IUnitService unitService, ICommodityTypeService commodityTypeService,
     IProgramService programService, ITransporterService transporterService, IPeriodService periodService, 
     ICommodityService commodityService, ITransactionService transactionService, IStoreService storeService,
     IAdminUnitService adminUnitService, IHubService hubService, IFDPService fdpService,
     IProjectCodeService projectCodeService, IShippingInstructionService shippingInstructionService, 
     ISMSGatewayService smsGatewayService, IContactService contactService, ISMSService smsService)
     : base(userProfileService)
 {
     _dispatchAllocationService = dispatchAllocationService;
     _dispatchService = dispatchService;
     _userProfileService = userProfileService;
     _otherDispatchAllocationService = otherDispatchAllocationService;
     _dispatchDetailService = dispatchDetailService;
     _unitService = unitService;
     _commodityTypeService = commodityTypeService;
     _programService = programService;
     _transporterService = transporterService;
     _periodService = periodService;
     _commodityService = commodityService;
     _transactionService = transactionService;
     _storeService = storeService;
     _adminUnitService = adminUnitService;
     _hubService = hubService;
     _fdpService = fdpService;
     _projectCodeService = projectCodeService;
     _shippingInstructionService = shippingInstructionService;
     _smsGatewayService = smsGatewayService;
     _contactService = contactService;
     _smsService = smsService;
 }
コード例 #2
0
 public UserController(IUser_Service userService, IRandomGenerator randomGenerator, IEmailService emailService, ISMSService smsService)
 {
     _userService     = userService;
     _randomGenerator = randomGenerator;
     _emailService    = emailService;
     _smsService      = smsService;
 }
コード例 #3
0
ファイル: CampaignModule.cs プロジェクト: chihsien/Learning
        public CampaignModule(ICampaignService campaignService, ITagInfoService tagInfoService, ICampaignTagMappingService campaignTagMappingService, ICampaignTypeService campaignTypeService, IChannelInfoService channelInfoService, ITaFieldInfoService taFieldInfoService, ICampaignKeywordSettingService campaignKeywordSettingService, ITaInfoService taInfoService, ISMSService smsService, ICampaignStepInfoService campaignStepInfoService, ISystemJobInfoService systemJobInfoService)
            : base()
        {
            this.CampaignService = campaignService;
            this.TagInfoService = tagInfoService;
            this.CampaignTagMappingService = campaignTagMappingService;
            this.CampaignTypeService = campaignTypeService;
            this.ChannelInfoService = channelInfoService;
            this.TaFieldInfoService = taFieldInfoService;
            this.CampaignKeywordSettingService = campaignKeywordSettingService;
            this.TaInfoService = taInfoService;
            this.SMSService = smsService;
            this.CampaignStepInfoService = campaignStepInfoService;
            this.SystemJobInfoService = systemJobInfoService;

            this.Get[CampaignMetadataModule.CampaignList, PathApiCampaignList] = _ => this.RunHandler<ReqGetCampaignList, Negotiator>(this.GetCampaignList);
            this.Post[CampaignMetadataModule.AddCampaign, PathApiAddCampaign] = p => this.RunHandler<ReqAddCampaign, Negotiator>(this.AddCampaign);
            this.Put[CampaignMetadataModule.UpdateCampaign, PathApiUpdateCampaign] = _ => this.RunHandler<ReqCampaignUpdate, Negotiator>(this.UpdateCampaign);
            this.Delete[CampaignMetadataModule.DeleteCampaign, PathApiDeleteCampaign] = _ => this.RunHandler<ReqCampaignDelete, Negotiator>(this.DeleteCampaign);
            this.Get[CampaignMetadataModule.CampaignDateRange, PathApiCampaignDateRange] = this.CampaignDateRange;
            this.Get[CampaignMetadataModule.GetCampaignTypeList, PathApiGetCampaignTypeList] = this.GetCampaignTypeList;
            this.Get[CampaignMetadataModule.GetCampaignConfig, PathApiGetCampaignConfig] = _ => this.RunHandler<ReqGetCampaignById, Negotiator>(this.GetCampaignConfig);
            this.Get[CampaignMetadataModule.GetTagInfoList, PathApiGetTagInfoList] = this.GetTagInfoList;
            this.Get[CampaignMetadataModule.GetSmsKeywordList, PathApiGetSmsKeywordList] = _ => this.RunHandler<ReqCampaignGetSmsKeywordList, Negotiator>(this.GetSmsKeywordList);
            this.Post[CampaignMetadataModule.CampaignAddSmsKeyword, PathApiCampaignAddSmsKeyword] = this.CampaignAddSmsKeyword;
            this.Put[CampaignMetadataModule.UpdateSmsKeyword, PathApiUpdateSmsKeyword] = _ => this.RunHandler<ReqCampaignUpdateSmsKeywordList, Negotiator>(this.UpdateSmsKeyword);
            this.Get[CampaignMetadataModule.GetProfileFields, PathApiGetProfileFields] = _ => this.RunHandler<ReqGetProfileFields, Negotiator>(this.GetProfileFields);
            this.Get[CampaignMetadataModule.CampaignSmsVender, PathApiCampaignSmsVender] = this.CampaignSmsVender;
            this.Get[CampaignMetadataModule.GetServerTime, PathApiGetServerTime] = this.GetServerTime;
            this.Put[CampaignMetadataModule.SetChannelSwitch, PathApiSetChannelSwitch] = _ => this.RunHandler<ReqCampaignSetChannelSwitch, Negotiator>(this.SetChannelSwitch);
            //Updated by Eric 20150728
            //EventHandling & Logger測試方法
            this.Get["TEST", "/et/campaigns/errortest/action"] = this.ErrorTestAction;
        }
コード例 #4
0
 public EmployeeService(IUnitOfWork unitOfWork,
                        IRepository <Employee> employeeRepo,
                        IRepository <Terminal> terminalRepo,
                        IRepository <Wallet> walletRepo,
                        IRepository <Department> departmentRepo,
                        IServiceHelper serviceHelper,
                        IUserService userSvc,
                        IRoleService roleSvc,
                        IReferralService referralSvc,
                        ISMSService smsSvc,
                        IMailService mailSvc,
                        IHostingEnvironment hostingEnvironment,
                        IGuidGenerator guidGenerator,
                        IOptions <AppConfig> _appConfig)
 {
     _unitOfWork         = unitOfWork;
     _repo               = employeeRepo;
     _terminalRepo       = terminalRepo;
     _walletRepo         = walletRepo;
     _departmentRepo     = departmentRepo;
     _serviceHelper      = serviceHelper;
     _userSvc            = userSvc;
     _referralSvc        = referralSvc;
     _smsSvc             = smsSvc;
     _mailSvc            = mailSvc;
     appConfig           = _appConfig.Value;
     _hostingEnvironment = hostingEnvironment;
     _guidGenerator      = guidGenerator;
     _roleSvc            = roleSvc;
 }
コード例 #5
0
 public VehicleService(IRepository <Vehicle> vehicleRepo, IDriverService driversvc, IRepository <VehicleAllocationDetailModel> vehicleAlloRepo, IFranchizeService franchizeService,
                       IRepository <VehiclePart> vehiclepartRepo, IRepository <VehicleModel> vehicleModelRepo,
                       IRepository <Terminal> terminalRepo, IRepository <Employee> employeeRepo,
                       IUnitOfWork unitOfWork, IServiceHelper serviceHelper, IRepository <State> stateRepo, ISMSService smsSvc, IRepository <Manifest, Guid> manifestRepo,
                       IRepository <VehicleTripRegistration, Guid> vhclTrip, IUserService userSvc, IEmployeeService employeeSvc,
                       IRepository <VehicleAllocationDetailModel> vehAllocDet)
 {
     _vehicleRepo      = vehicleRepo;
     _driversvc        = driversvc;
     _vehiclepartRepo  = vehiclepartRepo;
     _vehicleModelRepo = vehicleModelRepo;
     _terminalRepo     = terminalRepo;
     _employeeRepo     = employeeRepo;
     _unitOfWork       = unitOfWork;
     _serviceHelper    = serviceHelper;
     _stateRepo        = stateRepo;
     _franchizeService = franchizeService;
     _smsSvc           = smsSvc;
     _manifestRepo     = manifestRepo;
     _vhclTrip         = vhclTrip;
     _employeeSvc      = employeeSvc;
     _vehicleAlloRepo  = vehicleAlloRepo;
     _userSvc          = userSvc;
     _vehAllocDet      = vehAllocDet;
 }
コード例 #6
0
        public string SendSMS(string custId, string mobile, string sms)
        {
            if (_smsService == null)
            {
                _smsService = new ConcereteSMSService();
            }

            // first call for this customer
            if (!_smsCount.ContainsKey(custId))
            {
                _smsCount.Add(custId, 1);
                return(_smsService.SendSMS(custId, mobile, sms));
            }
            else
            {
                var customer = _smsCount.Where(x => x.Key == custId).FirstOrDefault();
                if (customer.Value >= 100)
                {
                    return("You have reached the maximum send messages for this subscription");
                }
                else
                {
                    _smsCount[custId] = customer.Value + 1;
                    return(_smsService.SendSMS(custId, mobile, sms));
                }
            }
        }
 public BridgeUserFacebookPhoneImplementation(IUnitOfWork unitOfWork, IJWTService jwtService, IFacebookService facebookService, ISMSService smsService)
 {
     _unitOfWork      = unitOfWork;
     _jwtService      = jwtService;
     _facebookService = facebookService;
     _smsService      = smsService;
 }
コード例 #8
0
 public AuthenticationService(
     IEaiSingleSignOnService eaiSingleSignOnService,
     IMapper mapper,
     IUserPunctuationRepository userPunctuationRepository,
     IUserPunctuationSourceRepository userPunctuationSourceRepository,
     IUserAccessCodeInviteRepository userAccessCodeInviteRepository,
     IUserStatusLogRepository userStatusLogRepository,
     IUserRepository userRepository,
     IUserAccessLogRepository userAccessLogRepository,
     IUserStatusRepository userStatusRepository,
     IUserAccessCodeConfirmationRepository userAccessCodeConfirmationRepository,
     ISMSService SMSService,
     IUnitOfWork unitOfWork,
     IEmailService emailService,
     IShopUserRepository shopUserRepository,
     ILogger logger,
     IHostingEnvironment env)
 {
     _eaiSingleSignOnService = eaiSingleSignOnService;
     _mapper = mapper;
     _userAccessCodeInviteRepository  = userAccessCodeInviteRepository;
     _userPunctuationSourceRepository = userPunctuationSourceRepository;
     _userPunctuationRepository       = userPunctuationRepository;
     _userAccessLogRepository         = userAccessLogRepository;
     _userStatusLogRepository         = userStatusLogRepository;
     _userRepository       = userRepository;
     _userStatusRepository = userStatusRepository;
     _userAccessCodeConfirmationRepository = userAccessCodeConfirmationRepository;
     _SMSService         = SMSService;
     _unitOfWork         = unitOfWork;
     _logger             = logger;
     _emailService       = emailService;
     _shopUserRepository = shopUserRepository;
     _env = env;
 }
コード例 #9
0
 public UserController(UserManager <User> userManager, ApplicationDbContext context, ISMSService smsService, IEmailService emailService)
 {
     this.userManager  = userManager;
     this.context      = context;
     this.smsService   = smsService;
     this.emailService = emailService;
 }
コード例 #10
0
 public UserController(ILogger <UserController> Logger, IMailService mailService, ISMSService smsService, IDataStore db)
 {
     _LOGGER      = Logger;
     _MailService = mailService;
     _SMSService  = smsService;
     _dbstore     = db;
 }
コード例 #11
0
 public SubscribtionChangedEventHandler(ISMSService smsService, IOptions <JobsConfig> jobsOptions, IEmailService emailService, ILogger <SubscribtionChangedEventHandler> logger)
 {
     this.smsService   = smsService;
     this.emailService = emailService;
     this.logger       = logger;
     this.jobsOptions  = jobsOptions;
 }
コード例 #12
0
 public NotificationServiceV2(
     IEmailService emailService,
     ISMSService smsService)
 {
     this.emailService = emailService;
     this.smsService   = smsService;
 }
コード例 #13
0
 public FangSecondHandService(
     ISMSService smsService,
     IDbStorage dbStorage)
 {
     this.sMSService = smsService;
     this.dbStorage  = dbStorage;
 }
コード例 #14
0
 public AuthController(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IMapper mapper, ITokenService tokenService, ISMSService smsService)
 {
     _smsService    = smsService;
     _tokenService  = tokenService;
     _signInManager = signInManager;
     _mapper        = mapper;
     _userManager   = userManager;
 }
コード例 #15
0
ファイル: AccountController.cs プロジェクト: xin-young/IC
 public AccountController(ILogger <AccountController> logger, IDBService dbService
                          , ISMSService smsService, IVerificationCodeService verificationCodeService,
                          Dictionary <string, List <VerificationCode> > codeDict) : base(logger, dbService)
 {
     this.smsService = smsService;
     this.verificationCodeService = verificationCodeService;
     this.codeDict = codeDict;
 }
コード例 #16
0
 public UserContext(HttpContextBase httpcontext, IUserService userService, IAuthenticationService authenticationService, ISMSService smsService)
 {
     this._httpContext           = httpcontext;
     this._userService           = userService;
     this._authenticationService = authenticationService;
     this._expiryTimeSpan        = FormsAuthentication.Timeout;
     this._smsService            = smsService;
 }
コード例 #17
0
 public EventService(IEventRepository eventRepository, INotificationService notificationService, IDeviceRepository deviceRepository, IPersonService personService, ISMSService smsService)
 {
     _eventRepository     = eventRepository;
     _notificationService = notificationService;
     _deviceRepository    = deviceRepository;
     _personService       = personService;
     _smsService          = smsService;
 }
コード例 #18
0
 public OrderService(IOrderDataAccess orderDataAccess, ISMSService smsService, IUserService userService, IProductService productService, IMessageService messageService)
 {
     this.orderDataAccess = orderDataAccess;
     this.smsService = smsService;
     this.userService = userService;
     this.productService = productService;
     this.messageService = messageService;
 }
コード例 #19
0
 public ProviderController(IProviderManager manager, IHttpContextAccessor httpContextAccessor, IEmailService emailService, ISMSService smsService, IPatientManager patientIManager)
 {
     _manager             = manager;
     _httpContextAccessor = httpContextAccessor;
     _emailService        = emailService;
     _smsService          = smsService;
     _patientManager      = patientIManager;
 }
コード例 #20
0
 public CommonController(ILogger <CommonController> logger,
                         IAttachUploadService attachUploadService,
                         ISMSService SMSServices)
 {
     _logger              = logger;
     _SMSServices         = SMSServices;
     _attachUploadService = attachUploadService;
 }
コード例 #21
0
 public VideoController(IUserContext userContext, IVideoService videoService, ISMSService smsService, IUserService userService, IPermissionService permissionService, IUrlHelper urlHelper)
 {
     this._userContext       = userContext;
     this._videoService      = videoService;
     this._smsService        = smsService;
     this._userService       = userService;
     this._permissionService = permissionService;
     this._urlHelper         = urlHelper;
 }
コード例 #22
0
 public UserManagementService(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ISMSService smsService)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _smsService    = smsService;
 }
コード例 #23
0
 public VerificationsController(IStringLocalizer <ErrorsResource> localizer, UserManager <ApplicationUser> userManager, IAccountService accountService, ISMSService sMSService, IConfiguration configuration, ICallService callService)
     : base(localizer)
 {
     _userManager    = userManager;
     _accountService = accountService;
     _sMSService     = sMSService;
     _configuration  = configuration;
     _callService    = callService;
 }
コード例 #24
0
 public FriendInviteService(IUnitOfWork unitOfWork, IUserAccessCodeInviteRepository userAccessCodeInviteRepository, IUserRepository userRepository, ISMSService SMSService, IUserStatusRepository userStatusRepository, IOfficeRepository officeRepository)
 {
     _unitOfWork = unitOfWork;
     _userAccessCodeInviteRepository = userAccessCodeInviteRepository;
     _userRepository       = userRepository;
     _SMSService           = SMSService;
     _userStatusRepository = userStatusRepository;
     _officeRepository     = officeRepository;
 }
コード例 #25
0
 public ShortMessageServiceController(ApplicationDbContext context, IMapper mapper, IUserHandler userHandler, IHostingEnvironment hostingEnvironment, IConfiguration configuration, ISMSService smsService)
 {
     _context            = context;
     _mapper             = mapper;
     _userHandler        = userHandler;
     _hostingEnvironment = hostingEnvironment;
     _configuration      = configuration;
     _smsService         = smsService;
 }
コード例 #26
0
 public NotificationServiceV3(
     IObjectValidator validator,
     IEmailService emailService,
     ISMSService smsService)
 {
     this.emailService = emailService;
     this.smsService   = smsService;
     this.validator    = validator;
 }
コード例 #27
0
 public SMSActionFilter(ISMSService mvpService,
                        IProductService productService,
                        IWorkContext workContext
                        )
 {
     this._productService = productService;
     this._smsService     = mvpService;
     this._workContext    = workContext;
 }
コード例 #28
0
 public MemberRegistrationDataAccess(IUnitOfWork <Context> unitOfWork, IEmailService emailService, ISMSService sMsService,
                                     IOptions <AppSettings> appSettings, IMemoryCache memoryCache)
 {
     _unitOfWork   = unitOfWork;
     _emailService = emailService;
     _sMsService   = sMsService;
     _appSettings  = appSettings;
     _memoryCache  = memoryCache;
 }
コード例 #29
0
 public AccesscodeController(
     IConfiguration configuration,
     AspserviceDbContext dbContext,
     ISMSService smsService
     ) : base(configuration)
 {
     _configuration = configuration;
     _DbContext     = dbContext;
     _SMSService    = smsService;
 }
コード例 #30
0
        /// <summary>重新加载</summary>
        private void Reload()
        {
            // 创建对象构建器(Spring.NET)
            string springObjectFile = SMSConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(SMSConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_SMSService = objectBuilder.GetObject <ISMSService>(typeof(ISMSService));
        }
コード例 #31
0
 public ChatController(IIDMService IIDMService,
                       IHubApiService HubApiService,
                       IMailService MailService,
                       ISMSService SMSService)
 {
     this.IDMService    = IIDMService;
     this.HubApiService = HubApiService;
     this.MailService   = MailService;
     this.SMSService    = SMSService;
 }
コード例 #32
0
ファイル: OrderService.cs プロジェクト: BHfeimao/DotNetStudio
 public OrderService(IOrderDataAccess orderDataAccess, ISMSService smsService, IUserService userService, IProductService productService, IMessageService messageService, CloudFarmDbContext cloudFarmDb, GenericRepository<PreSaleOrder> preOrdeRepository)
 {
     this.orderDataAccess = orderDataAccess;
     this.smsService = smsService;
     this.userService = userService;
     this.productService = productService;
     this.messageService = messageService;
     this.cloudFarmDb = cloudFarmDb;
     this.preSaleOrdeRepository = preOrdeRepository;
 }
コード例 #33
0
        public MessagesController(IRepository<Recipient> recipientRepository, 
			IRepository<RecipientGroup> recipientGroupRepository,
			IRepository<Message> messageRepository,
			ISMSService<SMSMessage> smsService)
        {
            _recipientRepository = recipientRepository;
            _recipientGroupRepository = recipientGroupRepository;
            _messageRepository = messageRepository;
            _smsService = smsService;
        }
コード例 #34
0
 public FeedbackService(IRepository <Complaint> complaintRepo,
                        IServiceHelper serviceHelper, IMailService mailSvc, ISMSService smsSvc, IOptions <AppConfig> _appConfig, IUnitOfWork unitOfWork)
 {
     _complaintRepo = complaintRepo;
     _serviceHelper = serviceHelper;
     _smsSvc        = smsSvc;
     _unitOfWork    = unitOfWork;
     _mailSvc       = mailSvc;
     appConfig      = _appConfig.Value;
 }
コード例 #35
0
 public OrderService(IOrderDataAccess orderDataAccess, ISMSService smsService, IUserService userService, IProductService productService, IMessageService messageService, CloudFarmDbContext cloudFarmDb, GenericRepository <PreSaleOrder> preOrdeRepository)
 {
     this.orderDataAccess       = orderDataAccess;
     this.smsService            = smsService;
     this.userService           = userService;
     this.productService        = productService;
     this.messageService        = messageService;
     this.cloudFarmDb           = cloudFarmDb;
     this.preSaleOrdeRepository = preOrdeRepository;
 }
        public IncomingSMSController(ISMSService<SMSMessage> smsLaneService, 
			IOrderRepository<Order> orderRepository,
			IRepository<TankTruck> tankTruckRepository,
			ILogger logger, ISMSMessageProcessor messageProcessor)
        {
            _smsLaneService = smsLaneService;
            _orderRepository = orderRepository;
            _logger = logger;
            _tankTruckRepository = tankTruckRepository;
            _messageProcessor = messageProcessor;
        }
コード例 #37
0
ファイル: SMSController.cs プロジェクト: edgecomputing/cats
 public SMSController(ISMSService smsService)
 {
     _smsService = smsService;
 }
コード例 #38
0
 public UserService(IUserDataAccess userDataAccess, ISMSService smsService)
 {
     this.userDataAccess = userDataAccess;
     this.smsService = smsService;
 }
コード例 #39
0
 public TTOutSMSController(ISMSService<SMSMessage> smsLaneService, IOrderRepository<Order> orderRepository, ILogger logger)
 {
     _smsLaneService = smsLaneService;
     _logger = logger;
     _orderRepository = orderRepository;
 }
コード例 #40
0
 public UIHandler(ISMSService SMSService)
 {
     _SMSService = SMSService;
 }
コード例 #41
0
 public UserService(IUserDataAccess userDataAccess, ISMSService smsService, CloudFarmDbContext dbContext)
 {
     this.userDataAccess = userDataAccess;
     this.smsService = smsService;
     this.cloudFarmDb = dbContext;
 }