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(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 InstanceContext(object contextObject) { _contextObject = contextObject; _behaviour = AttributesReader.GetCallbackBehavior(contextObject.GetType()) ?? new CallbackBehaviorAttribute(); _useSynchronizationContext = _behaviour.UseSynchronizationContext; }