Esempio n. 1
0
 /// <summary>
 /// Adds another service to the list of hosted services
 /// </summary>
 /// <param name="serviceType">Type of the service.</param>
 /// <param name="contractType">Type of the contract.</param>
 /// <param name="serviceId">The service id.</param>
 /// <param name="exposeWsdl">if set to <c>true</c> [expose WSDL].</param>
 public void AddServiceHostWsHttp(Type serviceType, Type contractType, string serviceId, bool exposeWsdl)
 {
     Execute(
         () => ServiceGarden.AddServiceHostWsHttp(serviceType, contractType, serviceId, exposeWsdl),
         url => AddServiceInfo(serviceType, contractType, url, "WS HTTP", ServiceGarden.GetHostByEndpointAddress(url))
         );
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a WS HTTP based service host
 /// </summary>
 /// <param name="serviceType">Type of the service.</param>
 /// <param name="contractType">Type of the contract.</param>
 /// <param name="serviceId">The service id.</param>
 /// <param name="messageSize">Size of the message.</param>
 /// <param name="exposeWsdl">if set to <c>true</c> [expose WSDL].</param>
 /// <param name="baseAddress">The base address.</param>
 /// <param name="basePath">The base path.</param>
 /// <param name="extension">The extension.</param>
 /// <param name="useHttps">Indicates whether HTTP is to be used</param>
 public void AddServiceHostWsHttp(Type serviceType, Type contractType = null, string serviceId = null, MessageSize messageSize = MessageSize.Undefined, bool exposeWsdl = false, string baseAddress = null, string basePath = null, string extension = null, bool useHttps = false)
 {
     Execute(
         () => ServiceGarden.AddServiceHostWsHttp(serviceType, contractType, serviceId, messageSize, exposeWsdl, baseAddress, basePath, extension, useHttps),
         url => AddServiceInfo(serviceType, contractType, url, "WS HTTP", ServiceGarden.GetHostByEndpointAddress(url))
         );
 }
Esempio n. 3
0
 /// <summary>
 /// Adds another service to the list of hosted services
 /// </summary>
 /// <param name="serviceType">Type of the service.</param>
 /// <param name="exposeWsdl">if set to <c>true</c> [expose WSDL].</param>
 public void AddServiceHostWsHttp(Type serviceType, bool exposeWsdl)
 {
     Execute(
         () => ServiceGarden.AddServiceHostWsHttp(serviceType, exposeWsdl),
         url => AddServiceInfo(serviceType, serviceType.GetInterfaces()[0], url, "WS HTTP", ServiceGarden.GetHostByEndpointAddress(url))
         );
 }