Exemplo n.º 1
0
 public EmailHttpClient(IEmailApiConfiguration emailApiConfiguration) : base(emailApiConfiguration.Url)
 {
 }
Exemplo n.º 2
0
        public static void AddEmailApi(this IServiceCollection services, IEmailApiConfiguration emailApiConfiguration)
        {
            services.AddSingleton(emailApiConfiguration);

            services.AddScoped <IEmailHttpClient, EmailHttpClient>();
        }