2 writes to InstanceContext
System.ServiceModel (2)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
184
rpc.
InstanceContext
= new InstanceContext(rpc.Host, false);
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
121
this.
InstanceContext
= instanceContext;
36 references to InstanceContext
System.ServiceModel (36)
System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (3)
100
ConcurrencyInstanceContextFacet resource = rpc.
InstanceContext
.Concurrency;
101
lock (rpc.
InstanceContext
.ThisLock)
125
ConcurrencyBehavior.UnlockInstance(rpc.
InstanceContext
);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
345
rpc.Correlation[offset + i] = initializer.BeforeInvoke(rpc.
InstanceContext
, channel, rpc.Request);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (5)
214
if (rpc.
InstanceContext
.QuotaThrottle != null)
226
bool success = rpc.
InstanceContext
.QuotaThrottle.Acquire(rpc.Pause());
262
rpc.Correlation[offset + i] = this.messageInspectors[i].AfterReceiveRequest(ref rpc.Request, (IClientChannel)rpc.Channel.Proxy, rpc.
InstanceContext
);
1601
rpc.
InstanceContext
.FaultInternal();
1723
if (!rpc.
InstanceContext
.IncomingChannels.Contains(proxy))
System\ServiceModel\Dispatcher\InstanceBehavior.cs (12)
108
InstanceContext context = rpc.
InstanceContext
;
182
if (rpc.
InstanceContext
== null)
185
rpc.
InstanceContext
.ServiceThrottle = rpc.channelHandler.InstanceContextServiceThrottle;
189
rpc.OperationContext.SetInstanceContext(rpc.
InstanceContext
);
190
rpc.
InstanceContext
.Behavior = this;
192
if (rpc.
InstanceContext
.State == CommunicationState.Created)
194
lock (rpc.
InstanceContext
.ThisLock)
196
if (rpc.
InstanceContext
.State == CommunicationState.Created)
198
rpc.
InstanceContext
.Open(rpc.Channel.CloseTimeout);
202
rpc.
InstanceContext
.BindRpc(ref rpc);
277
rpc.
InstanceContext
.ReleaseServiceInstance();
285
rpc.Instance = rpc.
InstanceContext
.GetServiceInstance(rpc.Request);
System\ServiceModel\Dispatcher\MessageRpc.cs (3)
417
if (this.
InstanceContext
!= null && !this.isInstanceContextSingleton)
421
this.
InstanceContext
.Abort();
764
return this.rpc.
InstanceContext
;
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
72
SynchronizationContext syncContext = GetSyncContext(rpc.
InstanceContext
);
System\ServiceModel\Dispatcher\TransactionBehavior.cs (10)
109
rpc.
InstanceContext
.Transaction.SetCurrent(ref rpc);
115
if ((rpc.
InstanceContext
!= null) && (rpc.transaction != null))
117
TransactionInstanceContextFacet context = rpc.
InstanceContext
.Transaction;
130
return rpc.
InstanceContext
.Transaction.Attached;
300
InstanceContext context = rpc.
InstanceContext
;
369
rpc.
InstanceContext
.Transaction.AddReference(ref rpc, rpc.Transaction.Current, true);
389
rpc.
InstanceContext
.Transaction.AddReference(ref rpc, rpc.Transaction.Clone, false);
479
rpc.
InstanceContext
.Transaction.CompletePendingTransaction(this.Current, null);
492
rpc.
InstanceContext
.Transaction.CompletePendingTransaction(this.Current, error);
576
this.scope = this.rpc.
InstanceContext
.Transaction.CreateTransactionScope(clone);
System\ServiceModel\InstanceContext.cs (1)
620
if (rpc.
InstanceContext
== this && rpc.SuccessfullyBoundInstance)