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)); }
private string BuildEndPointAddress(ServiceAddress serviceAddress) { return(serviceAddress.GetAddress + this.serviceType.Name); }