Example #1
0
 public HomeController(ISmtpRepository SmtpRepository)
 {
     if (SmtpRepository == null) {
         throw new ArgumentNullException("SmtpRepository");
     }
     smtpRepository = SmtpRepository;
 }
Example #2
0
 public PdfController(IPdfService pdfService,
                      INotificationService notificationService,
                      ISmtpRepository smtpConfigsRepository)
 {
     this.pdfService            = pdfService;
     this.notificationService   = notificationService;
     this.smtpConfigsRepository = smtpConfigsRepository;
 }
Example #3
0
        public SmtpController(ISmtpRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.SmtpRepository = repository;
        }
        public SmtpController(ISmtpRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.SmtpRepository = repository;
        }
Example #5
0
 public EmailUnitOfWork(FrameworkContext context,
                        IGroupRepository groupRepository,
                        ICampaignRepository campaignRepository,
                        ISmtpRepository smtpRepository)
     : base(context)
 {
     GroupRepository    = groupRepository;
     CampaignRepository = campaignRepository;
     SmtpRepository     = smtpRepository;
 }
Example #6
0
 public EmailAccountService(IEmailAccountRepository emailAccountRepository,
                            IUserRepository userRepository,
                            IEmailClientAggregate emailClientAggregate,
                            IImapRepository imapRepository,
                            ISmtpRepository smtpRepository,
                            IMapper mapper)
 {
     _emailAccountRepository = emailAccountRepository;
     _userRepository         = userRepository;
     _imapRepository         = imapRepository;
     _smtpRepository         = smtpRepository;
     _mapper = mapper;
     _emailClientAggregate = emailClientAggregate;
 }
Example #7
0
        public SmtpController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.SmtpRepository = new MixERP.Net.Schemas.Config.Data.Smtp
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public SmtpController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.SmtpRepository = new MixERP.Net.Schemas.Config.Data.Smtp
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
 public SmtpService(ISmtpRepository smtpRepository)
 {
     _smtpRepository = smtpRepository;
 }