示例#1
0
 /// <summary>Creates <see cref="ICouchApi"/> instance from settings.</summary>
 public static ICouchApi CreateCouchApi([NotNull] this CouchApiSettings settings, HttpMessageHandler handler)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     return(new CouchApi(settings, handler));
 }
示例#2
0
 /// <summary>Creates <see cref="ICouchApi"/> instance from settings.</summary>
 public static ICouchApi CreateCouchApi([NotNull] this CouchApiSettings settings)
 {
     return(CreateCouchApi(settings, null));
 }