protected virtual ServiceHost CreateAndConfigureServiceHost <T>(T serviceInstance, Uri baseAddress, bool isDuplex = false) { var serviceHost = new ServiceHost(serviceInstance, baseAddress); var serviceEndPoint = serviceHost.AddServiceEndpoint(typeof(T), ClientServerBindingHelper.GetBinding(isDuplex), string.Empty); serviceEndPoint.Behaviors.Add(new SciendoAuditBehavior()); return(serviceHost); }