示例#1
0
 public MessageHandler(PillarBoxContext dbContext, IInboxService inboxService, IMessageContext context, INotificationDespatcher notify)
 {
     _dbContext    = dbContext;
     _inboxService = inboxService;
     _context      = context;
     _notify       = notify;
 }
        private InboxController CreateInboxController(IInboxService inboxService)
        {
            var serviceContext = new Mock <IServiceContext>();

            serviceContext.SetupGet(_ => _.Inbox).Returns(inboxService);

            return(new InboxController(serviceContext.Object));
        }
示例#3
0
        public InboxViewModel(IInboxService inboxService,
                              IMvxMessenger mvxMessenger)
        {
            _inboxService = inboxService;
            _mvxMessenger = mvxMessenger;

            // fill our Inbox up with Items of Stuff from IInboxService
            ReloadInbox();

            // subscribe to Inbox Changed messages to react to changes in inbox service
            _inboxChangedSubToken =
                _mvxMessenger.Subscribe <InboxChangedMessage>(OnInboxChanged);
        }
示例#4
0
        public InboxViewModel(IInboxService inboxService,
                              IMvxMessenger mvxMessenger)
        {
            _inboxService = inboxService;
            _mvxMessenger = mvxMessenger;

            // fill our Inbox up with Items of Stuff from IInboxService
            ReloadInbox();

            // subscribe to Inbox Changed messages to react to changes in inbox service
            _inboxChangedSubToken =
                _mvxMessenger.Subscribe<InboxChangedMessage>(OnInboxChanged);
        }
示例#5
0
        public MakeStuffActionableViewModel(IMvxMessenger mvxMessenger,
                                            IInboxService inboxService,
                                            IProjectService projectService,
                                            IActionService actionService)
        {
            _mvxMessenger   = mvxMessenger;
            _inboxService   = inboxService;
            _projectService = projectService;
            _actionService  = actionService;

            ReloadProjects();

            // subscribe to Projects Changed messages to react to changes in project service
            _projectsChangedSubToken =
                _mvxMessenger.Subscribe <ProjectsChangedMessage>(OnProjectsChanged);

            _isSingleActionProject = true;
        }
        public MakeStuffActionableViewModel(IMvxMessenger mvxMessenger,
                                            IInboxService inboxService,
                                            IProjectService projectService,
                                            IActionService actionService)
        {
            _mvxMessenger = mvxMessenger;
            _inboxService = inboxService;
            _projectService = projectService;
            _actionService = actionService;

            ReloadProjects();

            // subscribe to Projects Changed messages to react to changes in project service
            _projectsChangedSubToken =
                _mvxMessenger.Subscribe<ProjectsChangedMessage>(OnProjectsChanged);

            _isSingleActionProject = true;
        }
示例#7
0
 /// <summary>
 /// Provides APIs to handle requests related to inbox, rules and messages.
 /// </summary>
 /// <param name="service"></param>
 public InboxController(IInboxService service)
 {
     _service = service;
 }
 public AddInboxDeviceHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
示例#9
0
 public ForwardMessageHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
示例#10
0
 public ViewMessageController(IMapper mapper, IInboxService inboxService, IMessagesService messagesService)
 {
     _mapper          = mapper;
     _inboxService    = inboxService;
     _messagesService = messagesService;
 }
示例#11
0
 public AddStuffViewModel(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
 /// <summary>
 /// Provides APIs to handle requests related to inbox, rules and messages.
 /// </summary>
 /// <param name="service"></param>
 public InboxController(IInboxService service)
 {
     _service = service;
 }
示例#13
0
 public InboxController(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
示例#14
0
 public AddInboxRecipientHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
 public DeleteMessagesHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
 public CreateInboxHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
示例#17
0
 // private IInboxService _inboxService;
 // private IRepository _repository;
 public ForumService(IInboxService inboxService, IRepository repository)
 {
     // _inboxService = inboxService;
     // _repository = repository;
 }
示例#18
0
 public AddStuffViewModel(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
示例#19
0
 public InboxDetailsController(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }
 public GetMessagesHandler(IInboxService inboxService)
 {
     _inboxService = inboxService;
 }