本文整理汇总了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;
}
示例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;
}
示例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);
}
示例4: LoanController
public LoanController(IEmailService mailService, IGenericRepository<Component> componentRepo, IGenericRepository<LoanInformation> loanInformationRepo, IGenericRepository<Loaner> loanerRepo)
{
_componentRepo = componentRepo;
_loanInformationRepo = loanInformationRepo;
_loanerRepo = loanerRepo;
_mailService = mailService;
}
示例5: EmailService
// private readonly IEventManagerService _eventManagerService;
public EmailService(IEmailService emailService, IMessageBusService messageBusService, IAuditService auditService/*, IEventManagerService eventManagerService*/)
{
_emailService = emailService;
_messageBusService = messageBusService;
_auditService = auditService;
// _eventManagerService = eventManagerService;
}
示例6: PasswordService
public PasswordService(IPersonRepository personRepository, IChurchRepository churchRepository, IUsernamePasswordRepository usernamePasswordRepository, IEmailService emailService)
{
_personRepository = personRepository;
_churchRepository = churchRepository;
_usernamePasswordRepository = usernamePasswordRepository;
_emailService = emailService;
}
示例7: UserService
public UserService(IRepository<User> repository, IRepository<Role> roleRepository, IEmailService emailService, ICryptographyService cryptographyService)
{
_repository = repository;
_roleRepository = roleRepository;
_emailService = emailService;
_cryptographyService = cryptographyService;
}
示例8: AccountController
public AccountController(IUserService userService, ICryptographyService cryptographyService, IEmailService emailService, IImageService imageService)
{
_userService = userService;
_cryptographyService = cryptographyService;
_emailService = emailService;
_imageService = imageService;
}
示例9: UserManager
public UserManager(IEmailService emailService, IAuthenticationService authenticationService, IPasswordHelper passwordHelper,ISession session)
{
this.emailService = emailService;
this.authenticationService = authenticationService;
this.passwordHelper = passwordHelper;
this.session = session;
}
示例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);
}
}
示例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);
}
示例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};
}
示例13: AdminController
public AdminController(IEmailService emailService, IEmployeeService employeeservice, IProjectService projectService, ISkillSetService skillsetservice)
{
_projectService = projectService;
_employeeService = employeeservice;
_emailService = emailService;
_skillsetservice = skillsetservice;
}
示例14: AccountHelper
/// AccountHelper
public AccountHelper(IGenericUnitofWork uow, IMembershipService membershipService, IUserHelper userHelper, IEmailService emailService)
{
UnitofWork = uow;
MembershipService = membershipService;
UserHelper = userHelper;
EmailService = emailService;
}
示例15: PaymentService
public PaymentService(IUserService userService, IEmailService emailService)
{
_emailService = emailService;
_userService = userService;
_owin = HttpContext.Current.GetOwinContext();
_dbContext = _owin.Get<ApplicationDbContext>();
}