예제 #1
0
        private void AddServiceBehaviour()
        {
            Binding        binding          = this.serviceBehavior.GetBindingConfiguration();
            Type           primaryInterface = this.serviceType.GetPrimaryInterface();
            ServiceAddress serviceAddress   = this.serviceBehavior.GetServiceAddress();

            this.AddServiceEndpoint(primaryInterface, binding, this.BuildEndPointAddress(serviceAddress))
            .Behaviors.Add(new UnityServiceProvider(this.serviceType));
        }
예제 #2
0
 private string BuildEndPointAddress(ServiceAddress serviceAddress)
 {
     return(serviceAddress.GetAddress + this.serviceType.Name);
 }