Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationState" /> class.
        /// </summary>
        /// <param name="notificationsMessageHandler">The notifications message handler.</param>
        public ApplicationState(NotificationsMessageHandler notificationsMessageHandler)
        {
            this.notificationsMessageHandler = notificationsMessageHandler;

            this.BreadCrumbTrail.Add("Start", "/OperatingModeSelection", false);
            this.Reset();
        }
Esempio n. 2
0
 public ChatController(IChatFacade chatFacade, IGroupFacade groupFacade,
                       NotificationsMessageHandler notificationsMessageHandler)
 {
     _chatFacade  = chatFacade;
     _groupFacade = groupFacade;
     _notificationsMessageHandler = notificationsMessageHandler;
 }
Esempio n. 3
0
 public RealController([FromServices]
                       IQuotationFiveService quotations,
                       ITimerService Timer,
                       IUserService userService,
                       IAddUserService addUserService,
                       NotificationsMessageHandler notificationsService
                       )
 {
     QuotationsFive       = quotations;
     timer                = Timer;
     UserService          = userService;
     NotificationsService = notificationsService;
     AddUserService       = addUserService;
     bool work = false;
 }
Esempio n. 4
0
 public ChannelModule(ChatContext context, GlobalConfig config, NotificationsMessageHandler notificationHandler) : base("/channel", config)
 {
     //ovako uzimaj config i context
     this.context             = context;
     this.notificationHandler = notificationHandler;
     //list channels
     Get("/", ListChannelAsync);
     //get channel
     Get("/{id}", GetChannelAsync);
     //creates a new channel
     Post("/", CreateNewChannelAsync);
     //edit channel
     Put("/{id}", EditChannelAsync);
     //delete channel
     Delete("/{id}", DeleteChannelAsync);
     //saves message
     Post("/send", SendMessageAsync);
     //loads conversation
     Get("/messages/{skip}/{limit}", GetMessagesAsync);
     //checks if there are new messages
     Get("/messages/new", CheckNewMessagesAsync);
 }
        public void SetServices(
            ISessionService sessionService,
            IUserWalletService userWalletService,
            NotificationsMessageHandler notificationsService)
        {
            if (SessionService == null)
            {
                SessionService = sessionService;
            }

            if (UserWalletService == null)
            {
                UserWalletService = userWalletService;
            }

            if (NotificationsService == null)
            {
                NotificationsService = notificationsService;
            }

            SessionsQuenue.AddRange(GetActiveSessions());
            StartTimers();
        }
Esempio n. 6
0
        public PatientController([FromServices]
                                 IUserService userService,
                                 IProblemService problemService,
                                 ISessionService sessionService,
                                 ISpecialistService specialistService,
                                 IReviewService reviewService,
                                 IUserWalletService userWalletService,
                                 IProblemImageService problemImageService,
                                 IProblemResourceService problemResourceService,
                                 IProblemResourceTaskService problemResourceTaskService,
                                 NotificationsMessageHandler notificationsService)
        {
            UserService                = userService;
            ProblemService             = problemService;
            SessionService             = sessionService;
            SpecialistService          = specialistService;
            ReviewService              = reviewService;
            UserWalletService          = userWalletService;
            ProblemImageService        = problemImageService;
            ProblemResourceService     = problemResourceService;
            ProblemResourceTaskService = problemResourceTaskService;

            NotificationsService = notificationsService;
        }
 public MessagesController(NotificationsMessageHandler notificationsMessageHandler)
 {
     this.notificationsMessageHandler = notificationsMessageHandler;
 }
 public ConversationController(IConversationDataProvider conversationDataProvider, ILLDbContext context, NotificationsMessageHandler messageHandler)
 {
     _conversationDataProvider = conversationDataProvider;
     _context        = context;
     _messageHandler = messageHandler;
 }
Esempio n. 9
0
 public TimerService(IServiceProvider services, NotificationsMessageHandler notificationsService)
 {
     Services             = services;
     NotificationsService = notificationsService;
 }
Esempio n. 10
0
 public WebSocketController(NotificationsMessageHandler notificationsMessageHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
 }
Esempio n. 11
0
 public MessagesController(NotificationsMessageHandler notificationsMessageHandler)
 => _notificationsMessageHandler = notificationsMessageHandler;
Esempio n. 12
0
 public MessageController(NotificationsMessageHandler notificationsMessageHandler, IChatHandler chatHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
     _chatHandler = chatHandler;
 }
 public ValuesController(NotificationsMessageHandler notificationsMessageHandler, IVideoQueryRepository videoQueryRepository)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
     _videoQueryRepository        = videoQueryRepository;
     FFbase.FFmpegDir             = Path.Combine(System.Environment.CurrentDirectory, "ffmpegbins");
 }
 public ClinicController(IPatientService patientService, IConsultationService consultationService, NotificationsMessageHandler notificationsMessageHandler)
 {
     this.patientService              = patientService;
     this.consultationService         = consultationService;
     this.notificationsMessageHandler = notificationsMessageHandler;
 }
Esempio n. 15
0
 public UserController([FromServices] IUserService usersService
                       , NotificationsMessageHandler notificationsService)
 {
     UserService          = usersService;
     NotificationsService = notificationsService;
 }
Esempio n. 16
0
 public LedController(NotificationsMessageHandler notificationsMessageHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
 }
Esempio n. 17
0
 public UserController(NotificationsMessageHandler notificationsMessageHandler, IUserHandler userHandler, IChatHandler chatHandler)
 {
     _userHandler = userHandler;
     _chatHandler = chatHandler;
     _notificationsMessageHandler = notificationsMessageHandler;
 }