2 instantiations of InstanceContext
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (2)
183this.CallbackInstance = new InstanceContext(callbackInstance); 261return new InstanceContext(callbackObject);
75 references to InstanceContext
dotnet-svcutil-lib (75)
CodeDomFixup\CodeDomVisitors\ConstructorFixer.cs (5)
21new Type[] { typeof(InstanceContext), }, 24new Type[] { typeof(InstanceContext), typeof(string), }, 25new Type[] { typeof(InstanceContext), typeof(string), typeof(string), }, 26new Type[] { typeof(InstanceContext), typeof(string), typeof(EndpointAddress), }, 28new Type[] { typeof(InstanceContext), typeof(Binding), typeof(EndpointAddress), },
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (3)
124ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 161ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); 196ctor.BaseConstructorArgs.Add(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); ;
CodeDomFixup\ConfigToCode.cs (1)
314if (ctor.Parameters.Count > 0 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(InstanceContext).FullName))
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (2)
391private InstanceContext _callbackInstance; 501internal InstanceContext CallbackInstance
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (3)
41private InstanceContext _instanceContext; 396internal InstanceContext InstanceContext 1459InstanceContext IDuplexContextChannel.CallbackInstance
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
823public InstanceContext CallbackInstance
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
56protected ClientBase(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (2)
36private static Type s_instanceContextType = typeof(InstanceContext); 192ctor.Parameters.Add(new CodeParameterDeclarationExpression(typeof(InstanceContext), s_inputInstanceName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1244public InstanceContext ExistingInstanceContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (2)
120private static void UnlockInstance(InstanceContext instanceContext) 143InstanceContext instanceContext = operationContext.InstanceContext;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (3)
534object IInstanceProvider.GetInstance(InstanceContext instanceContext) 539object IInstanceProvider.GetInstance(InstanceContext instanceContext, Message message) 544void IInstanceProvider.ReleaseInstance(InstanceContext instanceContext, object instance)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IInstanceContextProvider.cs (1)
11InstanceContext GetExistingInstanceContext(Message message, IContextChannel channel);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IInstanceProvider.cs (3)
11object GetInstance(InstanceContext instanceContext); 12object GetInstance(InstanceContext instanceContext, Message message); 13void ReleaseInstance(InstanceContext instanceContext, object instance);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InstanceBehavior.cs (3)
32InstanceContext context = rpc.InstanceContext; 74internal object GetInstance(InstanceContext instanceContext) 84internal object GetInstance(InstanceContext instanceContext, Message request)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InstanceContextProviderBase.cs (1)
39public abstract InstanceContext GetExistingInstanceContext(Message message, IContextChannel channel);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IResumeMessageRpc.cs (1)
9InstanceContext GetMessageInstanceContext();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (3)
53internal InstanceContext InstanceContext; 67OperationContext operationContext, InstanceContext instanceContext, EventTraceActivity eventTraceActivity) 546public InstanceContext GetMessageInstanceContext()
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PerSessionInstanceContextProvider.cs (1)
17public override InstanceContext GetExistingInstanceContext(Message message, IContextChannel channel)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
93private SynchronizationContext GetSyncContext(InstanceContext instanceContext)
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (18)
37public DuplexChannelFactory(InstanceContext callbackInstance) 40public DuplexChannelFactory(InstanceContext callbackInstance, Binding binding, String remoteAddress) 43public DuplexChannelFactory(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress) 46public DuplexChannelFactory(InstanceContext callbackInstance, Binding binding) 49public DuplexChannelFactory(InstanceContext callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress) 52public DuplexChannelFactory(InstanceContext callbackInstance, string endpointConfigurationName) 55public DuplexChannelFactory(InstanceContext callbackInstance, ServiceEndpoint endpoint) 177else if (callbackInstance is InstanceContext) 179this.CallbackInstance = (InstanceContext)callbackInstance; 187public TChannel CreateChannel(InstanceContext callbackInstance) 192public TChannel CreateChannel(InstanceContext callbackInstance, EndpointAddress address) 207public virtual TChannel CreateChannel(InstanceContext callbackInstance, EndpointAddress address, Uri via) 254private static InstanceContext GetInstanceContextForObject(object callbackObject) 256if (callbackObject is InstanceContext) 258return (InstanceContext)callbackObject; 279public static TChannel CreateChannel(InstanceContext callbackInstance, String endpointConfigurationName) 287public static TChannel CreateChannel(InstanceContext callbackInstance, Binding binding, EndpointAddress endpointAddress) 295public static TChannel CreateChannel(InstanceContext callbackInstance, Binding binding, EndpointAddress endpointAddress, Uri via)
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexClientBase.cs (5)
12protected DuplexClientBase(InstanceContext callbackInstance) 16protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName) 20protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress) 24protected DuplexClientBase(InstanceContext callbackInstance, string endpointConfigurationName, EndpointAddress remoteAddress) 28protected DuplexClientBase(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress)
FrameworkFork\System.ServiceModel\System\ServiceModel\IDuplexContextChannel.cs (1)
10InstanceContext CallbackInstance { get; set; }
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (6)
17public sealed class InstanceContext : CommunicationObject, IExtensibleObject<InstanceContext> 22private ExtensionCollection<InstanceContext> _extensions; 96public IExtensionCollection<InstanceContext> Extensions 104_extensions = new ExtensionCollection<InstanceContext>(this, this.ThisLock); 298private InstanceContext _instanceContext; 301public CloseAsyncResult(TimeSpan timeout, AsyncCallback callback, object state, InstanceContext instanceContext)
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (3)
24private InstanceContext _instanceContext; 234public InstanceContext InstanceContext 359internal void SetInstanceContext(InstanceContext instanceContext)
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (4)
12internal delegate void InstanceContextEmptyCallback(InstanceContext instanceContext); 23private InstanceContext _instanceContext; 25public ServiceChannelManager(InstanceContext instanceContext) 30public ServiceChannelManager(InstanceContext instanceContext, InstanceContextEmptyCallback emptyCallback)