コード例 #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();
        }
コード例 #2
0
 public ChatController(IChatFacade chatFacade, IGroupFacade groupFacade,
                       NotificationsMessageHandler notificationsMessageHandler)
 {
     _chatFacade  = chatFacade;
     _groupFacade = groupFacade;
     _notificationsMessageHandler = notificationsMessageHandler;
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #5
0
        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();
        }
コード例 #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;
        }
コード例 #7
0
 public MessagesController(NotificationsMessageHandler notificationsMessageHandler)
 {
     this.notificationsMessageHandler = notificationsMessageHandler;
 }
コード例 #8
0
 public ConversationController(IConversationDataProvider conversationDataProvider, ILLDbContext context, NotificationsMessageHandler messageHandler)
 {
     _conversationDataProvider = conversationDataProvider;
     _context        = context;
     _messageHandler = messageHandler;
 }
コード例 #9
0
ファイル: TimerService.cs プロジェクト: Ruslan199/TraderApi
 public TimerService(IServiceProvider services, NotificationsMessageHandler notificationsService)
 {
     Services             = services;
     NotificationsService = notificationsService;
 }
コード例 #10
0
 public WebSocketController(NotificationsMessageHandler notificationsMessageHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
 }
コード例 #11
0
ファイル: MessagesController.cs プロジェクト: DanAnton/chat
 public MessagesController(NotificationsMessageHandler notificationsMessageHandler)
 => _notificationsMessageHandler = notificationsMessageHandler;
コード例 #12
0
 public MessageController(NotificationsMessageHandler notificationsMessageHandler, IChatHandler chatHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
     _chatHandler = chatHandler;
 }
コード例 #13
0
 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;
 }
コード例 #15
0
ファイル: UserController.cs プロジェクト: Ruslan199/TraderApi
 public UserController([FromServices] IUserService usersService
                       , NotificationsMessageHandler notificationsService)
 {
     UserService          = usersService;
     NotificationsService = notificationsService;
 }
コード例 #16
0
 public LedController(NotificationsMessageHandler notificationsMessageHandler)
 {
     _notificationsMessageHandler = notificationsMessageHandler;
 }
コード例 #17
0
ファイル: UserController.cs プロジェクト: Astyan42/ChatApp
 public UserController(NotificationsMessageHandler notificationsMessageHandler, IUserHandler userHandler, IChatHandler chatHandler)
 {
     _userHandler = userHandler;
     _chatHandler = chatHandler;
     _notificationsMessageHandler = notificationsMessageHandler;
 }