Esempio n. 1
0
 public static ServiceHostBuilder AddEndpoints(this ServiceHostBuilder serviceHostBuilder, IEnumerable <EndpointSettings> endpoints)
 {
     foreach (var endpoint in endpoints)
     {
         serviceHostBuilder.AddEndpoint(endpoint);
     }
     return(serviceHostBuilder);
 }
Esempio n. 2
0
 public static ServiceHostBuilder AddEndpoint <TContract, TCallbackContract>(this ServiceHostBuilder serviceHostBuilder, TContract serviceInstance = null) where TContract : class where TCallbackContract : class =>
 serviceHostBuilder.AddEndpoint(new EndpointSettings <TContract, TCallbackContract>(serviceInstance));