public CallbackServiceHost(InstanceContext serviceCtx, string baseAddress, CallbackBehaviorAttribute behaviour) { _serviceCtx = serviceCtx; _behaviour = behaviour; if (serviceCtx == null) throw new ArgumentNullException("serviceCtx"); _baseAddress = new Uri(baseAddress,UriKind.Absolute); base._concurrency = _behaviour.ConcurrencyMode; _service = serviceCtx._contextObject; }
//public CallbackServiceHost(Type service, Uri baseAddress,) // : this(Activator.CreateInstance(service), baseAddress.ToString()) //{ // //TODO: make it not singleton //} public CallbackServiceHost(InstanceContext serviceCtx, Uri baseAddress, NDceRpc.ServiceModel.CallbackBehaviorAttribute behaviour) : this(serviceCtx, baseAddress.ToString(), behaviour) { }