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