• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IEmailService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: PetitionController

 public PetitionController(IEmailService emailService, ICeremonyService ceremonyService, IPetitionService petitionService, IErrorService errorService)
 {
     _emailService = emailService;
     _ceremonyService = ceremonyService;
     _petitionService = petitionService;
     _errorService = errorService;
 }
开发者ID:ucdavis,项目名称:Commencement,代码行数:7,代码来源:PetitionController.cs


示例17: TimetableServiceWithEmail

		public TimetableServiceWithEmail(ITimetableService innerTimetableService, IEmailService emailService)
		{
			if (innerTimetableService == null) throw new ArgumentNullException("Inner timetable service");
			if (emailService == null) throw new ArgumentNullException("Email service");
			_innerTimetableService = innerTimetableService;
			_emailService = emailService;
		}
开发者ID:k-bone,项目名称:ddd-updated-skeleton-project,代码行数:7,代码来源:TimetableServiceWithEmail.cs


示例18: AttendingUserDetailsViewModel

        public AttendingUserDetailsViewModel(ICTimeService cTimeService, IApplicationStateService applicationStateService, IContactsService contactsService, IDialogService dialogService, IPhoneService phoneService, IEmailService emailService)
        {
            Guard.NotNull(cTimeService, nameof(cTimeService));
            Guard.NotNull(applicationStateService, nameof(applicationStateService));
            Guard.NotNull(contactsService, nameof(contactsService));
            Guard.NotNull(dialogService, nameof(dialogService));
            Guard.NotNull(phoneService, nameof(phoneService));
            Guard.NotNull(emailService, nameof(emailService));

            this._cTimeService = cTimeService;
            this._applicationStateService = applicationStateService;
            this._contactsService = contactsService;
            this._dialogService = dialogService;
            this._phoneService = phoneService;
            this._emailService = emailService;

            this.LoadAttendingUser = UwCoreCommand.Create(this.LoadAttendingUserImpl)
                .HandleExceptions()
                .ShowLoadingOverlay(CTime2Resources.Get("Loading.Employee"));
            this.LoadAttendingUser.ToProperty(this, f => f.AttendingUser, out this._attendingUserHelper);
            
            var canCall = Observable
                .Return(this._phoneService.CanCall)
                .CombineLatest(this.WhenAnyValue(f => f.AttendingUser), (serviceCanCall, user) => 
                    serviceCanCall && string.IsNullOrWhiteSpace(user?.PhoneNumber) == false);
            this.Call = UwCoreCommand.Create(canCall, this.CallImpl)
                .HandleExceptions();

            var canSendMail = this.WhenAnyValue(f => f.AttendingUser, selector: user => string.IsNullOrWhiteSpace(user?.EmailAddress) == false);
            this.SendMail = UwCoreCommand.Create(canSendMail, this.SendMailImpl)
                .HandleExceptions();

            this.AddAsContact = UwCoreCommand.Create(this.AddAsContactImpl)
                .HandleExceptions();
        }
开发者ID:haefele,项目名称:CTime2,代码行数:35,代码来源:AttendingUserDetailsViewModel.cs


示例19: OrderService

 public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings)
 {
     _orderRepository = orderRepository;
     _customerFactory = customerFactory;
     _emailService = emailService;
     _orderSettings = orderSettings;
 }
开发者ID:episerver,项目名称:Commerce-Demo-Kit,代码行数:7,代码来源:OrderService.cs


示例20: PersonService

 public PersonService(
     IPersonRepository personRepository, 
     IPersonGroupRepository personGroupRepository, 
     IPermissionRepository permissionRepository, 
     IPersonRoleRepository personRoleRepository, 
     IPersonOptionalFieldRepository personOptionalFieldRepository, 
     IRelationshipRepository relationshipRepository,
     IChurchMatcherRepository churchMatcherRepository,
     IGroupRepository groupRepository,
     IFamilyRepository familyRepository,
     IEmailService emailService,
     IAddressRepository addressRepository,
     IPhotoRepository photoRepository)
 {
     _personRepository = personRepository;
     _personGroupRepository = personGroupRepository;
     _permissionRepository = permissionRepository;
     _personRoleRepository = personRoleRepository;
     _personOptionalFieldRepository = personOptionalFieldRepository;
     _relationshipRepository = relationshipRepository;
     _churchMatcherRepository = churchMatcherRepository;
     _groupRepository = groupRepository;
     _familyRepository = familyRepository;
     _emailService = emailService;
     _addressRepository = addressRepository;
     _photoRepository = photoRepository;
 }
开发者ID:petermunnings,项目名称:funwithoiky,代码行数:27,代码来源:PersonService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IEmitter类代码示例发布时间:2022-05-24
下一篇:
C# IEmailSender类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap