当前位置: 首页>>代码示例>>C#>>正文


C# IEmailService类代码示例

本文整理汇总了C#中IEmailService的典型用法代码示例。如果您正苦于以下问题:C# IEmailService类的具体用法?C# IEmailService怎么用?C# IEmailService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IEmailService类属于命名空间,在下文中一共展示了IEmailService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EditorController

 public EditorController(IRepository<Editor> editorRepository, IAccessService accessService, IEmailService emailService, IMembershipService membershipService)
 {
     _editorRepository = editorRepository;
     _accessService = accessService;
     _emailService = emailService;
     _membershipService = membershipService;
 }
开发者ID:ucdavis,项目名称:Gramps,代码行数:7,代码来源:EditorController.cs

示例2: MediaVerifyController

 public MediaVerifyController(
       IMemberService MemberService
     , IEmailService EmailService
     , IMember_ActionService Member_ActionService
     , IOutDoorService OutDoorService
     , IIndustryCateService IndustryCateService,
     ICrowdCateService CrowdCateService,
     IOwnerCateService OwnerCateService,
     IAreaCateService AreaCateService,
     IPurposeCateService PurposeCateService,
     IFormatCateService FormatCateService,
     IPeriodCateService PeriodCateService,
     ICityCateService CityCateService,
     IMediaCateService MediaCateService,
     ICompanyService CompanyService)
 {
     this.MemberService = MemberService;
     this.EmailService = EmailService;
     this.Member_ActionService = Member_ActionService;
     this.OutDoorService = OutDoorService;
     this.IndustryCateService = IndustryCateService;
     this.CrowdCateService = CrowdCateService;
     this.OwnerCateService = OwnerCateService;
     this.AreaCateService = AreaCateService;
     this.PurposeCateService = PurposeCateService;
     this.FormatCateService = FormatCateService;
     this.PeriodCateService = PeriodCateService;
     this.CityCateService = CityCateService;
     this.MediaCateService = MediaCateService;
     this.CompanyService = CompanyService;
 }
开发者ID:navy235,项目名称:7980Site,代码行数:31,代码来源:MediaVerifyController.cs

示例3: InboxViewModel

        public InboxViewModel(IEmailService emailService, IRegionManager regionManager)
        {
            this.synchronizationContext = SynchronizationContext.Current ?? new SynchronizationContext();

            this.composeMessageCommand = new DelegateCommand<object>(this.ComposeMessage);
            this.replyMessageCommand = new DelegateCommand<object>(this.ReplyMessage, this.CanReplyMessage);
            this.openMessageCommand = new DelegateCommand<EmailDocument>(this.OpenMessage);

            this.messagesCollection = new ObservableCollection<EmailDocument>();
            this.Messages = new PagedCollectionView(this.messagesCollection);
            this.Messages.CurrentChanged += (s, e) =>
                this.replyMessageCommand.RaiseCanExecuteChanged();

            this.emailService = emailService;
            this.regionManager = regionManager;

            this.emailService.BeginGetEmailDocuments(
                r =>
                {
                    var messages = this.emailService.EndGetEmailDocuments(r);

                    this.synchronizationContext.Post(
                        s =>
                        {
                            foreach (var message in messages)
                            {
                                this.messagesCollection.Add(message);
                            }
                        },
                        null);
                },
                null);
        }
开发者ID:CarlosVV,项目名称:mediavf,代码行数:33,代码来源:InboxViewModel.cs

示例4: LoanController

 public LoanController(IEmailService mailService, IGenericRepository<Component> componentRepo, IGenericRepository<LoanInformation> loanInformationRepo, IGenericRepository<Loaner> loanerRepo)
 {
     _componentRepo = componentRepo;
     _loanInformationRepo = loanInformationRepo;
     _loanerRepo = loanerRepo;
     _mailService = mailService;
 }
开发者ID:JacobOJ,项目名称:ITTWEB_ASS1,代码行数:7,代码来源:LoanController.cs

示例5: EmailService

 //  private readonly IEventManagerService _eventManagerService;
 public EmailService(IEmailService emailService, IMessageBusService messageBusService, IAuditService auditService/*, IEventManagerService eventManagerService*/)
 {
     _emailService = emailService;
     _messageBusService = messageBusService;
     _auditService = auditService;
      //   _eventManagerService = eventManagerService;
 }
开发者ID:parrymike,项目名称:myMDS_Dev,代码行数:8,代码来源:EmailService.cs

示例6: PasswordService

 public PasswordService(IPersonRepository personRepository, IChurchRepository churchRepository, IUsernamePasswordRepository usernamePasswordRepository, IEmailService emailService)
 {
     _personRepository = personRepository;
     _churchRepository = churchRepository;
     _usernamePasswordRepository = usernamePasswordRepository;
     _emailService = emailService;
 }
开发者ID:petermunnings,项目名称:funwithoiky,代码行数:7,代码来源:PasswordService.cs

示例7: UserService

 public UserService(IRepository<User> repository, IRepository<Role> roleRepository, IEmailService emailService, ICryptographyService cryptographyService)
 {
     _repository = repository;
     _roleRepository = roleRepository;
     _emailService = emailService;
     _cryptographyService = cryptographyService;
 }
开发者ID:rwhitmire,项目名称:DefectLog,代码行数:7,代码来源:UserService.cs

示例8: AccountController

 public AccountController(IUserService userService, ICryptographyService cryptographyService, IEmailService emailService, IImageService imageService)
 {
     _userService = userService;
     _cryptographyService = cryptographyService;
     _emailService = emailService;
     _imageService = imageService;
 }
开发者ID:salemano,项目名称:ConferenceApp,代码行数:7,代码来源:AccountController.cs

示例9: UserManager

 public UserManager(IEmailService emailService, IAuthenticationService authenticationService, IPasswordHelper passwordHelper,ISession session)
 {
     this.emailService = emailService;
     this.authenticationService = authenticationService;
     this.passwordHelper = passwordHelper;
     this.session = session;
 }
开发者ID:AbdoNile,项目名称:Foundation,代码行数:7,代码来源:UserManager.cs

示例10: InboxViewModel

        public InboxViewModel(IEmailService emailService, IRegionManager regionManager)
        {
            synchronizationContext = SynchronizationContext.Current ?? new SynchronizationContext();

            _composeMessageCommand = new DelegateCommand<object>(ComposeMessage);
            _replyMessageCommand = new DelegateCommand<object>(ReplyMessage, CanReplyMessage);
            _openMessageCommand = new DelegateCommand<EmailDocument>(OpenMessage);

            messagesCollection = new ObservableCollection<EmailDocument>();
            Messages = new CollectionView(this.messagesCollection);
            Messages.CurrentChanged += (s, e) =>
                _replyMessageCommand.RaiseCanExecuteChanged();

            _emailService = emailService;
            _regionManager = regionManager;

            if (_emailService != null)
            {
                _emailService.BeginGetEmailDocuments(
                    r =>
                        {
                            var messages = _emailService.EndGetEmailDocuments(r);
                            synchronizationContext.Post(
                                s =>
                                    {
                                        foreach (var message in messages)
                                        {
                                            messagesCollection.Add(message);
                                        }
                                    }, null);
                        }, null);
            }
        }
开发者ID:Slesa,项目名称:Poseidon,代码行数:33,代码来源:InboxViewModel.cs

示例11: BeforeEach

        public void BeforeEach()
        {
            _productRepo = Substitute.For<IProductRepository>();
            _orderFulfillmentService = Substitute.For<IOrderFulfillmentService>();
            _customerRepository = Substitute.For<ICustomerRepository>();
            _taxRateService = Substitute.For<ITaxRateService>();
            _emailService = Substitute.For<IEmailService>();

            _subject = new OrderService(_orderFulfillmentService,
                _customerRepository,
                _taxRateService,
                _emailService);

            _bestCustomer = new Customer
            {
                CustomerId = 42,
                PostalCode = "12345",
                Country = "Merica"
            };

            _listOfTaxEntries = new List<TaxEntry>
            {
                new TaxEntry {Description = "High Tax", Rate = (decimal) 0.60},
                new TaxEntry {Description = "Low Tax", Rate = (decimal) 0.10}
            };

            _orderConfirmation = new OrderConfirmation
            {
                OrderId = 1234,
                OrderNumber = "hello"
            };
            _customerRepository.Get(_bestCustomer.CustomerId.Value).Returns(_bestCustomer);
            _taxRateService.GetTaxEntries(_bestCustomer.PostalCode, _bestCustomer.Country).Returns(_listOfTaxEntries);
        }
开发者ID:brntsllvn,项目名称:OrderEntryMockingPracticeOLD,代码行数:34,代码来源:OrderServiceTests.cs

示例12: UserService

        public UserService(UserManager<IUserDto, int> userManager,
            IUserDtoMapper userDtoMapper,
            IEmailService emailService,
            EntityValidator entityValidator,
            IUserRepository userRepository,
            Func<object, ValidationContext> validationContextFactory = null)
        {
            if (userManager == null)
            {
                throw new ArgumentNullException("userManager");
            }

            if (userDtoMapper == null)
            {
                throw new ArgumentNullException("userDtoMapper");
            }

            if (emailService == null)
            {
                throw new ArgumentNullException("emailService");
            }

            _userRepository = userRepository;
            _userDtoMapper = userDtoMapper;
            _emailService = emailService;
            _entityValidator = entityValidator;
            _validationContextFactory = validationContextFactory ?? (o => new ValidationContext(o, null, null));
            _userManager = userManager;
            _userManager.UserValidator = new UserValidator<IUserDto, int>(_userManager){AllowOnlyAlphanumericUserNames = false};
        }
开发者ID:WadeOne,项目名称:EasyTeach,代码行数:30,代码来源:UserService.cs

示例13: AdminController

 public AdminController(IEmailService emailService, IEmployeeService employeeservice, IProjectService projectService, ISkillSetService skillsetservice)
 {
     _projectService = projectService;
     _employeeService = employeeservice;
     _emailService = emailService;
     _skillsetservice = skillsetservice;
 }
开发者ID:Amit-khandelwal,项目名称:Amit_EmployeeFinder,代码行数:7,代码来源:AdminController.cs

示例14: AccountHelper

 /// AccountHelper
 public AccountHelper(IGenericUnitofWork uow, IMembershipService membershipService, IUserHelper userHelper, IEmailService emailService)
 {
     UnitofWork = uow;
     MembershipService = membershipService;
     UserHelper = userHelper;
     EmailService = emailService;
 }
开发者ID:haithemaraissia,项目名称:RentalMVCClean,代码行数:8,代码来源:AccountHelper.cs

示例15: PaymentService

 public PaymentService(IUserService userService, IEmailService emailService)
 {
     _emailService = emailService;
     _userService = userService;
     _owin = HttpContext.Current.GetOwinContext();
     _dbContext = _owin.Get<ApplicationDbContext>();
 }
开发者ID:odinhaus,项目名称:SavingChance,代码行数:7,代码来源:PaymentService.cs


注:本文中的IEmailService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。