/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> ApiValuesByIdGetAsync(this IEmailAPI operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApiValuesByIdGetWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Template> GetTemplateAsync(this IEmailAPI operations, Guid id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetTemplateWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public ServicosController(ApplicationDbContext context, IEmailAPI email, ILoggerAPI logger) { _context = context; _email = email; _logger = logger; }
public IndexModel( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IEmailAPI emailAPI) { _userManager = userManager; _signInManager = signInManager; _email = emailAPI; }
public EmailController(ApplicationDbContext context, ILoggerAPI logger, IEmailAPI email, IOptions <AppSettings> appSettings) { _context = context; _logger = logger; _email = email; _appSettings = appSettings.Value; }
public GaleriasController(ApplicationDbContext context, IOnedriveAPI onedrive, IEmailAPI email, IOptions <AppSettings> settings, ILoggerAPI logger) { _context = context; _onedrive = onedrive; _email = email; _appSettings = settings.Value; _logger = logger; }
public UsersController(ApplicationDbContext context, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, ILoggerAPI logger, IOptions <AppSettings> settings, IEmailAPI email) { _context = context; _logger = logger; _signInManager = signInManager; _userManager = userManager; _appSettings = settings.Value; _email = email; }
public OnedriveAPI(ApplicationDbContext context, IHttpClientFactory clientFactory, IOptions <AppSettings> settings, ILoggerAPI logger, IEmailAPI emailAPI) { _context = context; _appSettings = settings.Value; _emailAPI = emailAPI; _logger = logger; _applicationClientId = _appSettings.ApplicationClientId; _applicationClientSecret = _appSettings.ApplicationClientSecret; // Utilizado para fazer pedidos Http _client = clientFactory.CreateClient(); // Url registado no portal da Azure _redirectUrl = _appSettings.SiteUrl + "/ContasOnedrive/Create"; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void ApiValuesPost(this IEmailAPI operations, string value = default(string)) { Task.Factory.StartNew(s => ((IEmailAPI)s).ApiValuesPostAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteTemplateAsync(this IEmailAPI operations, Guid id, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteTemplateWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiValuesByIdPutAsync(this IEmailAPI operations, int id, string value = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.ApiValuesByIdPutWithHttpMessagesAsync(id, value, null, cancellationToken).ConfigureAwait(false); }
public ForgotPasswordModel(UserManager <IdentityUser> userManager, IEmailAPI email) { _userManager = userManager; _email = email; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static void ApiValuesByIdDelete(this IEmailAPI operations, int id) { Task.Factory.StartNew(s => ((IEmailAPI)s).ApiValuesByIdDeleteAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiValuesByIdDeleteAsync(this IEmailAPI operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { await operations.ApiValuesByIdDeleteWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false); }
public MyServer(IEmailAPI emailSystem) { this.emailer = emailSystem; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static Template GetTemplate(this IEmailAPI operations, Guid id) { return(Task.Factory.StartNew(s => ((IEmailAPI)s).GetTemplateAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <string> ApiValuesGet(this IEmailAPI operations) { return(Task.Factory.StartNew(s => ((IEmailAPI)s).ApiValuesGetAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }