예제 #1
0
        /// <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();
            }
        }
예제 #2
0
        /// <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;
        }
예제 #3
0
 public CustomWsServiceHost(WSTrustServiceContract serviceType, params Uri[] baseAddresses)
     : base(serviceType, baseAddresses)
 {
 }
 public UnityWSTrustServiceHost(IUnityContainer unityContainer, WSTrustServiceContract serviceContract, params Uri[] baseAddresses)
     : base(serviceContract, baseAddresses)
 {
     SetupContainer(unityContainer);
 }