/// <summary> /// Loads the service description information from the configuration file and /// applies it to the runtime being constructed. /// </summary> protected override void ApplyConfiguration() { base.ApplyConfiguration(); // // Configure metadata endpoints // WSTrustServiceContract serviceContract = (WSTrustServiceContract)base.SingletonInstance; if (!serviceContract.SecurityTokenServiceConfiguration.DisableWsdl) { ConfigureMetadata(); } }
/// <summary> /// Initializes an instance of <see cref="WSTrustServiceHost"/> /// </summary> /// <param name="serviceContract">ServiceContract implementation to use.</param> /// <param name="baseAddresses">BaseAddress collection for the service host</param> /// <exception cref="ArgumentNullException">One of the input argument is null.</exception> public WSTrustServiceHost(WSTrustServiceContract serviceContract, params Uri[] baseAddresses) : base(serviceContract, baseAddresses) { if (serviceContract == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("serviceContract"); } if (serviceContract.SecurityTokenServiceConfiguration == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("serviceContract.SecurityTokenServiceConfiguration"); } _serviceContract = serviceContract; }
public CustomWsServiceHost(WSTrustServiceContract serviceType, params Uri[] baseAddresses) : base(serviceType, baseAddresses) { }
public UnityWSTrustServiceHost(IUnityContainer unityContainer, WSTrustServiceContract serviceContract, params Uri[] baseAddresses) : base(serviceContract, baseAddresses) { SetupContainer(unityContainer); }