public MessageGun( IHttpClientFactory httpClientFactory, MessageGunOptions options) { _httpClientFactory = httpClientFactory; _options = options; }
public static IServiceCollection AddMessageGun( this IServiceCollection services, MessageGunOptions options) { services.AddSingleton(options); services.AddSingleton <IMessageGun, MessageGun>(); return(services); }