示例#1
0
 public ChatController(IChatService chatService, ICryptographyService cryptographyService, IAppLogService appLogService, IUserService userService)
 {
     _chatService         = chatService;
     _cryptographyService = cryptographyService;
     _appLogService       = appLogService;
     _userService         = userService;
 }
 public FormUserInfoController(IFormUserInfoService formUserInfoService, IUserService userService, IAppLogService appLogService)
 {
     _formUserInfoService = formUserInfoService;
     _userService         = userService;
     _appLogService       = appLogService;
     _currentUserId       = _userService.GetCurrentUserId();
 }
示例#3
0
 public UserEducationController(IUserEducationService userEduService, IUserService service, IAppLogService appLogService)
 {
     _userEduService = userEduService;
     _userService    = service;
     _appLogService  = appLogService;
     _currentId      = _userService.GetCurrentUserId();
 }
 public IssueLogForAdminController(IIssueLogForAdminService issueLogForAdminService, IAppLogService appLogService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService)
 {
     _issueLogForAdminService = issueLogForAdminService;
     _appLogService = appLogService;
     _userService = userService;
     _emailMessenger = emailMessenger;
     _emailTemplateService = emailTemplateService;
 }
示例#5
0
 public ChargeController(IChargeService ChargeService, IUserService userService, IUserBaseService userBaseService, IAppLogService appLogService)
 {
     _chargeService   = ChargeService;
     _userService     = userService;
     _userBaseService = userBaseService;
     _currentUserId   = _userService.GetCurrentUserId();
     _appLogService   = appLogService;
 }
 public OrgMemRegController(IOrgMemRegService orgMemRegService, IUserService userService, IEmailMessenger emailMessenger, IEmailTemplateService emailTemplateService, IAppLogService appLogService)
 {
     _orgMemRegService     = orgMemRegService;
     _userService          = userService;
     _emailMessenger       = emailMessenger;
     _emailTemplateService = emailTemplateService;
     _appLogService        = appLogService;
 }
示例#7
0
 public AppTokenController(IAppTokenService appTokenService, IEmailMessenger emailMessenger, IAppLogService appLogService, IUserService userService, IEmailTemplateService emailTemplateService)
 {
     _appTokenService      = appTokenService;
     _emailMessenger       = emailMessenger;
     _appLogService        = appLogService;
     _userService          = userService;
     _emailTemplateService = emailTemplateService;
     currentUserId         = _userService.GetCurrentUserId();
 }
示例#8
0
        public ApplyEmailController(IJobPostingsService jobPostingsService, IAppLogService appLogService, IEmailTemplateService emailTemplateService, IEmailMessenger emailMessenger, IUserService userService)
        {
            _jobPostingsService = jobPostingsService;
            _appLogService = appLogService;
            _emailMessenger = emailMessenger;
            _emailTemplateService = emailTemplateService;
            _userService = userService;

        }
示例#9
0
 public AdminController(ILogger log, IAppLogService appLogSrv, IContactService contactSrv,
                        IArticleService articleSrv, IMapper mapper, IPageContentService pageContentSrv)
 {
     _log            = log;
     _appLogSrv      = appLogSrv;
     _contactSrv     = contactSrv;
     _articleSrv     = articleSrv;
     _mapper         = mapper;
     _pageContentSrv = pageContentSrv;
 }
        /// <summary>
        ///
        /// </summary>
        public AppLogsController(ILoggerUnitOfWork uow, IAppLogService appLogItemService, IOptions <DbLoggerOptions> options)
        {
            _uow = uow;
            _appLogItemService = appLogItemService;
            _options           = options.Value;

            pageSize       = 0;
            recordsPerPage = 8;
            totalItemCount = 0;
        }
        public void SendNotificationTest()
        {
            Notification notification = CreateNewNotification((short)EntityEnums.NotificationTemplateEnum.TestNotification);

            notification.IsSMS = true;
            notification.IsMobilePushMessage = true;

            INotificationService service = (INotificationService)
                                           EntityFactory.GetEntityServiceByName(vNotification.EntityName, "");

            service.Insert(notification, new InsertParameters());
            vNotification nSaved = (vNotification)service.GetByID(notification.NotificationID, new GetByIDParameters(GetSourceTypeEnum.View));

            NotificationSenderAgent.SendNotification(nSaved);

            // Check that log inserted for all notifications (no error happened anywhere)
            IAppLogService logService = (IAppLogService)
                                        EntityFactory.GetEntityServiceByName(AppLog.EntityName, "");
            FilterExpression filter = new FilterExpression(new Filter(AppLog.ColumnNames.ExtraBigInt, nSaved.NotificationID));
            FilterExpression f2     = new FilterExpression();

            f2.AddFilter(new Filter(AppLog.ColumnNames.AppLogTypeID, (int)EntityEnums.AppLogType.Notify_Email));
            f2.AddFilter(new Filter(AppLog.ColumnNames.AppLogTypeID, (int)EntityEnums.AppLogType.Notify_MobilePush));
            f2.AddFilter(new Filter(AppLog.ColumnNames.AppLogTypeID, (int)EntityEnums.AppLogType.Notify_SMS));
            f2.LogicalOperator = FilterLogicalOperatorEnum.OR;
            filter.AndMerge(f2);

            long logCount = logService.GetCount(filter);

            Assert.AreEqual(2, logCount, "EMAIL, SMS has not saved in logs. So, error in media");

            // check that all parameters are valid after save
            vNotification nSaved2 = (vNotification)service.GetByID(notification.NotificationID, new GetByIDParameters(GetSourceTypeEnum.View));

            Assert.IsNull(nSaved2.NotificationErrorMessage);
            Assert.IsNotNull(nSaved2.EmailSendDate);
            Assert.IsNotNull(nSaved2.SMSSendDate);
        }
示例#12
0
 public SearchBarController(ISearchBarResultsService searchBarResultsService, IAppLogService appLogService, IUserService userService)
 {
     _searchBarResultsService = searchBarResultsService;
     _userService             = userService;
     _appLogService           = appLogService;
 }
示例#13
0
 public EventTypeController(IEventTypeService eventTypeService, IAppLogService appLogService, IUserService userService)
 {
     _eventTypeService = eventTypeService;
     _appLogService    = appLogService;
     _userService      = userService;
 }
示例#14
0
 public AppLogsController(IAppLogService service, ILogger <AppLogsController> logger)
 {
     this.service = service;
     this.logger  = logger;
 }
示例#15
0
 public AwardTypeController(IAwardTypeService awardTypeService, IAppLogService appLogService, IUserService userService)
 {
     _awardTypeService = awardTypeService;
     _appLogService    = appLogService;
     _userService      = userService;
 }
 public GetFullNameQueryBody(IAppLogService appLogService) : base(appLogService)
 {
 }
示例#17
0
 public AppTokenTypeController(IAppTokenTypeService attService, IAppLogService appLogService, IUserService userService)
 {
     _attService    = attService;
     _appLogService = appLogService;
     _userService   = userService;
 }
示例#18
0
 protected QueryBodyBase(IAppLogService appLogService)
 {
     _appLogService = appLogService;
 }
 public UserManagmemtController(IUserManagementService userManagementService, IAppLogService appLogService, IUserService userService)
 {
     _userManagementService = userManagementService;
     _appLogService         = appLogService;
     _userService           = userService;
 }
示例#20
0
 public NotificationController(INotificationService notificationService, IUserService service, IAppLogService appLogService)
 {
     _notificationService = notificationService;
     _appLogService = appLogService;
     _service = service;
 }
示例#21
0
 public GetSalutationQueryBody(IAppLogService appLogService) : base(appLogService)
 {
 }
 public ChatMessageController(IChatMessageService chatMessageService, IAppLogService appLogService, IUserService userService)
 {
     _chatMessageService = chatMessageService;
     _appLogService      = appLogService;
     _userService        = userService;
 }
示例#23
0
 public AddressTypeController(IAddressTypeService addressTypeService, IAppLogService appLogService, IUserService userService)
 {
     _addressTypeService = addressTypeService;
     _appLogService      = appLogService;
     _userService        = userService;
 }
示例#24
0
 public AwsFileUploadController(IAwsFileUpload awsFileUpload, IAppLogService appLogService, IUserService userService)
 {
     _awsFileUpload = awsFileUpload;
     _appLogService = appLogService;
     _userService   = userService;
 }
 public OrganizationByUserBaseController(IOrganizationByUserBaseService organizationByUserBaseService, IUserService userService, IAppLogService appLogService)
 {
     _organizationByUserBaseService = organizationByUserBaseService;
     _userService   = userService;
     _appLogService = appLogService;
 }
示例#26
0
 public HomeController(IAppLogService appLogService)
 {
     _appLogService = appLogService;
 }
示例#27
0
 public AppLogController(IAppLogService LogService)
 {
     _AppLogService = LogService;
 }
示例#28
0
 public LanguageTypeController(ILanguageTypeService languageTypeService, IAppLogService appLogService, IUserService userService)
 {
     _languageTypeService = languageTypeService;
     _appLogService       = appLogService;
     _userService         = userService;
 }
示例#29
0
 public HealthCheck(Options options, Ws.Core.Extensions.HealthCheck.Checks.AppLog.IAppLogService service)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
 public EventController(IEventService service, IUserService userService, IAppLogService appLogService)
 {
     _Service       = service;
     _userService   = userService;
     _appLogService = appLogService;
 }