/// <summary>
 /// The old API for access to email templates
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> PostCreateEmailTemplateAsync(this IEmailTemplates operations, EmailTemplateCreateRequest request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostCreateEmailTemplateWithHttpMessagesAsync(request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 public UserRegistrationTask(
     IAuthenticationService <DbUserClient> authDbService,
     IEmailTemplates emailTemplates
     )
 {
     _authDbService  = authDbService;
     _emailTemplates = emailTemplates;
 }
Exemplo n.º 3
0
 public UserLoginTask(
     IAuthenticationService <DbUserClient> authDbService,
     IAuthenticationService <LdapUser> authLdapService,
     IEmailTemplates emailTemplates,
     IOptions <AppConfig> appConfig)
 {
     _authDbService   = authDbService;
     _authLdapService = authLdapService;
     _emailTemplates  = emailTemplates;
     _appConfig       = appConfig.Value;
 }
Exemplo n.º 4
0
 public UserPublic(IMail mail, IEmailTemplates emailTemplates, ISendMailLogsPublic sendMailLogsPublic)
 {
     _mail               = mail;
     _emailTemplates     = emailTemplates;
     _sendMailLogsPublic = sendMailLogsPublic;
 }
 /// <summary>
 /// The old API for access to email templates
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 public static object PostCreateEmailTemplate(this IEmailTemplates operations, EmailTemplateCreateRequest request)
 {
     return(operations.PostCreateEmailTemplateAsync(request).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 public UserEmailService(ApplicationDbContext context, IEmailTemplates emailTemplates, IEmailSender emailSender)
 {
     _context        = context;
     _emailTemplates = emailTemplates;
     _emailSender    = emailSender;
 }