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