Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExchangeListenerManager"/> class.
 /// </summary>
 /// <param name="userConnection"><see cref="UserConnection"/> instance.</param>
 public ExchangeListenerManager(UserConnection userConnection)
 {
     UserConnection  = userConnection;
     _requestFactory = ClassFactory.Get <IHttpWebRequestFactory>();
     _mailboxService = ClassFactory.Get <IMailboxService>(new ConstructorArgument("uc", userConnection));
     _log            = ClassFactory.Get <ISynchronizationLogger>(new ConstructorArgument("userId", userConnection.CurrentUser.Id));
 }
Exemplo n.º 2
0
 public MailBoxController(IMailboxService mailboxService, IMapper mapper, IHubContext <MailboxHub> hubContext, IConnectionManager connectionManager)
 {
     this.mailboxService    = mailboxService;
     this.mapper            = mapper;
     this.hubContext        = hubContext;
     this.connectionManager = connectionManager;
 }
 public WebhookController(MessageContext context, IMessageService messageService, IOptions <AppOptions> options, IMailboxService mailboxService)
 {
     _messageService = messageService;
     _options        = options.Value;
     _context        = context;
     _mailboxService = mailboxService;
 }
Exemplo n.º 4
0
 public MailService(
     MessageContext context,
     IMessageService messageService,
     IDomainService domainService,
     IMapper mapper,
     IMailgunAttachment mailgunAttachment,
     IMailboxService mailboxService,
     ILogger <MailService> logger)
 {
     _context           = context;
     _messageService    = messageService;
     _domainService     = domainService;
     _mapper            = mapper;
     _mailgunAttachment = mailgunAttachment;
     _mailboxService    = mailboxService;
     _logger            = logger;
 }
Exemplo n.º 5
0
 public MailboxController(IMailboxService mailboxService)
 {
     _mailboxService = mailboxService;
 }
 /// <summary>
 /// ctor.
 /// </summary>
 public MailDiagnosticToolsService() : base()
 {
     _mailboxService =
         ClassFactory.Get <IMailboxService>(new ConstructorArgument("uc", UserConnection));
     _exchangeListenerManager = GetExchangeListenerManager();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExchangeListenerManager"/> class.
 /// </summary>
 /// <param name="userConnection"><see cref="UserConnection"/> instance.</param>
 public ExchangeListenerManager(UserConnection userConnection)
 {
     UserConnection  = userConnection;
     _requestFactory = ClassFactory.Get <IHttpWebRequestFactory>();
     _mailboxService = ClassFactory.Get <IMailboxService>(new ConstructorArgument("uc", userConnection));
 }
Exemplo n.º 8
0
 public IsUniqueAttribute()
 {
     _mailboxService = NinjectWebCommon.Kernel.Get <IMailboxService>();
 }
Exemplo n.º 9
0
 public HomeController()
 {
     service = new MailboxService();
     infastructure = new InfastructureService();
 }