550 references to CommunicationState
System.ServiceModel (506)
System\ServiceModel\Administration\ServiceInfo.cs (1)
95public CommunicationState State
System\ServiceModel\ChannelFactory.cs (8)
39if (this.State == CommunicationState.Created || this.State == CommunicationState.Opening) 113if (this.State != CommunicationState.Opened) 117if (this.State != CommunicationState.Opened) 205Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 214Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, "");
System\ServiceModel\Channels\ChannelDemuxer.cs (6)
302if (this.innerChannel.State == CommunicationState.Opened) 516if (listener.State == CommunicationState.Closed || listener.State == CommunicationState.Closing) 665if (this.innerChannel.State != CommunicationState.Opened) 1993if (listener.State == CommunicationState.Closed || listener.State == CommunicationState.Closing)
System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
147if (this.State != CommunicationState.Opened)
System\ServiceModel\Channels\ChannelParameterCollection.cs (14)
76CommunicationState state = channel.State; 81case CommunicationState.Created: 84case CommunicationState.Opening: 85case CommunicationState.Opened: 86case CommunicationState.Closing: 87case CommunicationState.Closed: 88case CommunicationState.Faulted: 111CommunicationState state = channel.State; 116case CommunicationState.Created: 121case CommunicationState.Opening: 122case CommunicationState.Opened: 123case CommunicationState.Closing: 124case CommunicationState.Closed: 125case CommunicationState.Faulted:
System\ServiceModel\Channels\ChannelReliableSession.cs (6)
165if ((this.binder.State == CommunicationState.Opened) 256this.channel.State == CommunicationState.Faulted || 257this.channel.State == CommunicationState.Closed) 288this.channel.State == CommunicationState.Faulted || 289this.channel.State == CommunicationState.Closed) 330if ((this.binder.State == CommunicationState.Opened)
System\ServiceModel\Channels\ChannelTracker.cs (1)
34if (this.State != CommunicationState.Opened)
System\ServiceModel\Channels\ClientContextProtocol.cs (3)
56if (this.owner.State != CommunicationState.Created) 217(this.owner.State == CommunicationState.Created)) 222(this.owner.State == CommunicationState.Created))
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (10)
108CommunicationState currentState = this.State; 111if ((currentState == CommunicationState.Created) 112|| (currentState == CommunicationState.Opening) 113|| (currentState == CommunicationState.Opened)) 297CommunicationState currentState = this.State; 300if ((currentState == CommunicationState.Created) 301|| (currentState == CommunicationState.Opening) 302|| (currentState == CommunicationState.Opened)) 536if (this.State == CommunicationState.Created) 541if (this.State == CommunicationState.Opening)
System\ServiceModel\Channels\CommunicationObject.cs (93)
33CommunicationState state; 44this.state = CommunicationState.Created; 51this.state = CommunicationState.Created; 67get { return this.state == CommunicationState.Closed; } 70public CommunicationState State 103if (this.aborted || this.state == CommunicationState.Closed) 111this.state = CommunicationState.Closing; 158CommunicationState originalState; 166if (originalState != CommunicationState.Closed) 167this.state = CommunicationState.Closing; 174case CommunicationState.Created: 175case CommunicationState.Opening: 176case CommunicationState.Faulted: 178if (originalState == CommunicationState.Faulted) 184case CommunicationState.Opened: 211case CommunicationState.Closing: 212case CommunicationState.Closed: 235this.state = CommunicationState.Opening; 277CommunicationState originalState; 285if (originalState != CommunicationState.Closed) 286this.state = CommunicationState.Closing; 293case CommunicationState.Created: 294case CommunicationState.Opening: 295case CommunicationState.Faulted: 297if (originalState == CommunicationState.Faulted) 303case CommunicationState.Opened: 337case CommunicationState.Closing: 338case CommunicationState.Closed: 433case CommunicationState.Created: 436case CommunicationState.Opening: 439case CommunicationState.Opened: 442case CommunicationState.Closing: 445case CommunicationState.Closed: 448case CommunicationState.Faulted: 473if (this.state == CommunicationState.Closed || this.state == CommunicationState.Closing) 476if (this.state == CommunicationState.Faulted) 482this.state = CommunicationState.Faulted; 519CommunicationState currentState = this.state; 521Fx.Assert(currentState == CommunicationState.Closing || currentState == CommunicationState.Closed || currentState == CommunicationState.Faulted, 547case CommunicationState.Closing: 548case CommunicationState.Closed: 551case CommunicationState.Faulted: 579this.state = CommunicationState.Opening; 623this.state = CommunicationState.Closed; 717if (this.aborted || this.state != CommunicationState.Opening) 719this.state = CommunicationState.Opened; 774case CommunicationState.Created: 777case CommunicationState.Opening: 780case CommunicationState.Opened: 783case CommunicationState.Closing: 786case CommunicationState.Closed: 789case CommunicationState.Faulted: 823case CommunicationState.Created: 826case CommunicationState.Opening: 829case CommunicationState.Opened: 832case CommunicationState.Closing: 835case CommunicationState.Closed: 838case CommunicationState.Faulted: 857case CommunicationState.Created: 860case CommunicationState.Opening: 863case CommunicationState.Opened: 866case CommunicationState.Closing: 869case CommunicationState.Closed: 872case CommunicationState.Faulted: 886case CommunicationState.Created: 889case CommunicationState.Opening: 892case CommunicationState.Opened: 895case CommunicationState.Closing: 898case CommunicationState.Closed: 901case CommunicationState.Faulted: 915case CommunicationState.Created: 918case CommunicationState.Opening: 921case CommunicationState.Opened: 924case CommunicationState.Closing: 927case CommunicationState.Closed: 930case CommunicationState.Faulted: 944case CommunicationState.Created: 947case CommunicationState.Opening: 950case CommunicationState.Opened: 953case CommunicationState.Closing: 956case CommunicationState.Closed: 959case CommunicationState.Faulted: 969if (this.state == CommunicationState.Created || this.state == CommunicationState.Opening) 979case CommunicationState.Created: 982case CommunicationState.Opening: 985case CommunicationState.Opened: 988case CommunicationState.Closing: 991case CommunicationState.Closed: 994case CommunicationState.Faulted:
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (1)
454if (this.State != CommunicationState.Opened)
System\ServiceModel\Channels\DatagramAdapter.cs (7)
130while (this.listener.State == CommunicationState.Opened) 203if (this.State == CommunicationState.Opened) 442if (this.channel.State == CommunicationState.Opened) 1168if (channel.State == CommunicationState.Created) 1232if (channel.State == CommunicationState.Created) 1399if (channel.State == CommunicationState.Created) 1466if (channel.State == CommunicationState.Created)
System\ServiceModel\Channels\FramingChannels.cs (1)
360if (this.State != CommunicationState.Opening)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
948if (this.State == CommunicationState.Created) 1220if (channel.State != CommunicationState.Opened) 1745if (channel.State != CommunicationState.Opened)
System\ServiceModel\Channels\InternalDuplexChannelListener.cs (1)
213if (this.innerInputChannel.State == CommunicationState.Opened)
System\ServiceModel\Channels\IReliableChannelBinder.cs (1)
18CommunicationState State { get; }
System\ServiceModel\Channels\MsmqBindingMonitor.cs (7)
19CommunicationState currentState = CommunicationState.Created; 78if (this.currentState != CommunicationState.Created) 83this.currentState = CommunicationState.Opened; 92if (this.currentState != CommunicationState.Opened) 97this.currentState = CommunicationState.Closed; 210if (this.currentState != CommunicationState.Opened)
System\ServiceModel\Channels\MsmqInputChannelBase.cs (2)
179else if (CommunicationState.Opened == this.State) 248else if (CommunicationState.Opened == this.State)
System\ServiceModel\Channels\MsmqInputChannelListenerBase.cs (2)
27if (!this.IsDisposed && (CommunicationState.Opened == this.State || CommunicationState.Opening == this.State))
System\ServiceModel\Channels\MsmqInputSessionChannel.cs (5)
113if (CommunicationState.Closed == this.State || CommunicationState.Closing == this.State) 139if (CommunicationState.Closed == this.State || CommunicationState.Closing == this.State) 540if (this.channel.State == CommunicationState.Opened && this.channel.InternalPendingItems > 0)
System\ServiceModel\Channels\MsmqInputSessionChannelListener.cs (2)
95if (CommunicationState.Opened == this.State) 170if (CommunicationState.Opened == this.State)
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (1)
286if (this.channel.State != CommunicationState.Closed)
System\ServiceModel\Channels\OneWayChannelFactory.cs (1)
642if (pooledChannel.State == CommunicationState.Opened)
System\ServiceModel\Channels\OneWayChannelListener.cs (9)
677&& (this.innerChannelListener.State == CommunicationState.Opened); 863bool canDispatchOnThisThread = (innerChannelListener.State != CommunicationState.Opened); 1056if (this.State == CommunicationState.Closing || this.State == CommunicationState.Closed) 1174if (this.State != CommunicationState.Opened) 1262if (channel.State != CommunicationState.Opened) 1371startLoop = (this.channel.State == CommunicationState.Opened); 1380startLoop = (this.channel.State == CommunicationState.Opened); 1460if (this.channel.State == CommunicationState.Opened)
System\ServiceModel\Channels\PeerChannelListener.cs (1)
148if (this.State < CommunicationState.Closed && this.peerNode != null)
System\ServiceModel\Channels\PeerDuplexChannel.cs (2)
62Fx.Assert(this.State < CommunicationState.Opened, "Can not change the dispatcher on DuplexChannel after Open."); 102if (this.State < CommunicationState.Closed)
System\ServiceModel\Channels\PeerInputChannel.cs (1)
58if (this.State < CommunicationState.Closed)
System\ServiceModel\Channels\PeerNeighborManager.cs (1)
1588if (channel.State == CommunicationState.Opened)
System\ServiceModel\Channels\PeerOutputChannel.cs (1)
60if (this.State < CommunicationState.Closed)
System\ServiceModel\Channels\ReliableChannelBinder.cs (44)
36CommunicationState state = CommunicationState.Created; 128public CommunicationState State 172if (this.state == CommunicationState.Closed) 177this.state = CommunicationState.Closing; 310if ((this.state == CommunicationState.Closing) 311|| (this.state == CommunicationState.Closed)) 316if (this.state == CommunicationState.Opened) 318this.state = CommunicationState.Closing; 329CommunicationState channelState = channel.State; 331if ((channelState == CommunicationState.Created) 332|| (channelState == CommunicationState.Opening) 333|| (channelState == CommunicationState.Faulted)) 337else if ((channelState == CommunicationState.Closing) 338|| (channelState == CommunicationState.Closed)) 540if (this.state == CommunicationState.Created) 545if ((this.state == CommunicationState.Faulted) 546|| (this.state == CommunicationState.Closed)) 551this.state = CommunicationState.Faulted; 586if (this.state == CommunicationState.Faulted) 590else if ((this.state == CommunicationState.Closing) 591|| (this.state == CommunicationState.Closed)) 744if (this.state == CommunicationState.Opening) 746this.state = CommunicationState.Opened; 755if (this.state != CommunicationState.Created) 759if ((this.state == CommunicationState.Opening) 760|| (this.state == CommunicationState.Opened)) 783this.state = CommunicationState.Opening; 925if (this.State == CommunicationState.Created) 930if (this.State == CommunicationState.Opening) 935if (this.State == CommunicationState.Opened) 968if ((this.state != CommunicationState.Closing) 969&& (this.state != CommunicationState.Closed) 970&& (this.state != CommunicationState.Faulted)) 975this.state = CommunicationState.Closed; 1534&& (this.currentChannel.State == CommunicationState.Created)) 1735if (this.currentChannel.State != CommunicationState.Faulted) 1804if (this.currentChannel.State == CommunicationState.Faulted) 1844if (channel.State == CommunicationState.Opened) 3798if (lastIteration || channel.State != CommunicationState.Opened) 3864if (lastIteration || channel.State != CommunicationState.Opened) 3980if (this.lastReceive || this.channel.State != CommunicationState.Opened) 4015if (this.lastReceive || this.channel.State != CommunicationState.Opened) 4163if (this.lastReceive || this.channel.State != CommunicationState.Opened)
System\ServiceModel\Channels\ReliableChannelListener.cs (6)
77get { return this.State == CommunicationState.Opened; } 652(o.State == CommunicationState.Opened)) 724&& (this.typedListener.State == CommunicationState.Opened)) 730else if (this.typedListener.State == CommunicationState.Faulted) 860while (this.typedListener.State == CommunicationState.Opened) 904else if (this.typedListener.State == CommunicationState.Faulted)
System\ServiceModel\Channels\ReliableDuplexSessionChannel.cs (20)
354if (this.Aborted || this.State == CommunicationState.Faulted) 396else if (this.State == CommunicationState.Closing) 726if (this.State == CommunicationState.Closing 727|| this.State == CommunicationState.Closed 728|| this.State == CommunicationState.Faulted) 757if ((this.State != CommunicationState.Opened) 921if (this.State == CommunicationState.Opening || 922this.State == CommunicationState.Opened || 923this.State == CommunicationState.Closing) 938if (this.State == CommunicationState.Opening || 939this.State == CommunicationState.Opened || 940this.State == CommunicationState.Closing) 983if ((this.State != CommunicationState.Opened) 1229if (!terminated && (this.Binder.State == CommunicationState.Opened)) 1424if (this.State == CommunicationState.Opened) 1426else if (this.State == CommunicationState.Faulted) 1544if ((this.State == CommunicationState.Opened || this.State == CommunicationState.Closing) && 1624if ((channel.State == CommunicationState.Opened || channel.State == CommunicationState.Closing) &&
System\ServiceModel\Channels\ReliableInputSessionChannel.cs (9)
484if (!terminated && (this.Binder.State == CommunicationState.Opened)) 513if (this.State == CommunicationState.Closing 514|| this.State == CommunicationState.Closed 515|| this.State == CommunicationState.Faulted) 627if (this.Aborted || this.State == CommunicationState.Faulted) 668else if (this.State == CommunicationState.Closing) 943if (!terminated && (this.Binder.State == CommunicationState.Opened)) 1044if (this.Aborted || (this.State == CommunicationState.Faulted)) 1076else if (this.State == CommunicationState.Closing)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
1556|| (this.binder.State != CommunicationState.Opened)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (8)
264if (this.State == CommunicationState.Opening || 265this.State == CommunicationState.Opened || 266this.State == CommunicationState.Closing) 281if (this.State == CommunicationState.Opening || 282this.State == CommunicationState.Opened || 283this.State == CommunicationState.Closing) 735if (this.State == CommunicationState.Faulted) 1071if (!this.Connection.Closed && (this.Binder.State == CommunicationState.Opened))
System\ServiceModel\Channels\ReliableReplySessionChannel.cs (12)
255if (this.State == CommunicationState.Faulted || this.Aborted) 271if (this.State == CommunicationState.Faulted || this.Aborted) 389if (!terminated && (this.Binder.State == CommunicationState.Opened)) 580if (this.Aborted || this.State == CommunicationState.Faulted || this.State == CommunicationState.Closed) 591bool canReply = this.connection.AllAdded && (this.State == CommunicationState.Closing); 597if (this.State == CommunicationState.Closing) 649if (this.Aborted || this.State == CommunicationState.Faulted || this.State == CommunicationState.Closed) 1047if (this.Aborted || this.State == CommunicationState.Faulted || this.State == CommunicationState.Closed) 1085else if ((this.State == CommunicationState.Closing) && !isLastOnly)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (7)
187if (this.State == CommunicationState.Faulted) 286if (this.State == CommunicationState.Opening || 287this.State == CommunicationState.Opened || 288this.State == CommunicationState.Closing) 303if (this.State == CommunicationState.Opening || 304this.State == CommunicationState.Opened || 305this.State == CommunicationState.Closing)
System\ServiceModel\Channels\RequestContextBase.cs (12)
17CommunicationState state = CommunicationState.Opened; 34this.state = CommunicationState.Opened; 103if (state == CommunicationState.Closed) 106state = CommunicationState.Closing; 123state = CommunicationState.Closed; 143if (state != CommunicationState.Opened) 151state = CommunicationState.Closing; 165state = CommunicationState.Closed; 200if (state == CommunicationState.Closed || state == CommunicationState.Closing) 220if ((this.state != CommunicationState.Opened) || this.replyInitiated)
System\ServiceModel\Channels\SecurityChannelListener.cs (16)
144if (this.State == CommunicationState.Opened) 352if (this.State == CommunicationState.Closing && this.State == CommunicationState.Closed) 600if (this.securityListener.State == CommunicationState.Closed || this.securityListener.State == CommunicationState.Closing) 685if (this.State == CommunicationState.Closed || this.State == CommunicationState.Closing) 707if (this.State == CommunicationState.Closed || this.State == CommunicationState.Closing) 963if (this.State == CommunicationState.Closed || this.State == CommunicationState.Faulted) 1140if (this.State == CommunicationState.Closed || this.State == CommunicationState.Faulted) 1331if (this.State == CommunicationState.Closed || this.State == CommunicationState.Faulted) 1556if (this.channel.State == CommunicationState.Closed)
System\ServiceModel\Channels\ServerReliableChannelBinder.cs (14)
265if (this.State != CommunicationState.Faulted && 266this.State != CommunicationState.Closing && 267this.State != CommunicationState.Closed) 319if (this.listener.State == CommunicationState.Faulted) 371&& (this.listener.State == CommunicationState.Opened)) 375else if (this.listener.State == CommunicationState.Faulted) 487while (this.listener.State == CommunicationState.Opened) 530else if (this.listener.State == CommunicationState.Faulted) 545if (this.State != CommunicationState.Faulted && 546this.State != CommunicationState.Closing && 547this.State != CommunicationState.Closed) 575this.State == CommunicationState.Faulted || 576this.State == CommunicationState.Closing || 577this.State == CommunicationState.Closed)
System\ServiceModel\Channels\ServiceChannel.cs (9)
80this.openBinder = (binder.Channel.State == CommunicationState.Created); 600if ((this.State == CommunicationState.Created) && !operation.IsInitiating) 892if (this.State == CommunicationState.Opened) 1214if (this.State == CommunicationState.Opening) 1541if (this.InstanceContext != null && this.InstanceContext.State != CommunicationState.Closed && this.InstanceContext.State != CommunicationState.Faulted) 1567if (this.State == CommunicationState.Opening) 2685if (!this.isTimerCancelled && binder.Channel.State != CommunicationState.Faulted && binder.Channel.State != CommunicationState.Closed)
System\ServiceModel\Channels\SharedConnectionListener.cs (21)
37CommunicationState state; 51this.state = CommunicationState.Created; 93if (this.state == CommunicationState.Closing || 94this.state == CommunicationState.Closed) 98else if (this.state == CommunicationState.Opening && !aborting) 103this.state = CommunicationState.Closing; 139if (this.state == CommunicationState.Closed) 144Fx.Assert(this.state == CommunicationState.Closing, 147this.state = CommunicationState.Closed; 165if (this.state == CommunicationState.Closed) 196if (this.state != CommunicationState.Opening && 197this.state != CommunicationState.Opened) 216if (this.state == CommunicationState.Closing || 217this.state == CommunicationState.Closed) 226this.state = CommunicationState.Opening; 231this.state = CommunicationState.Faulted; 259if (this.state == CommunicationState.Created || this.state == CommunicationState.Opening) 261this.state = CommunicationState.Opened; 272while (this.state == CommunicationState.Opening) 291if (this.state == CommunicationState.Opening)
System\ServiceModel\Channels\TransportReplyChannelAcceptor.cs (1)
107if (this.State != CommunicationState.Opened)
System\ServiceModel\ClientBase.cs (5)
442public CommunicationState State 460return CommunicationState.Created; 831if (factoryRef.ChannelFactory.State != CommunicationState.Opened) 914Fx.Assert(this.channelFactoryRef.ChannelFactory.State == CommunicationState.Opened, 1253CommunicationState ICommunicationObject.State
System\ServiceModel\Description\ServiceCredentials.cs (2)
236if (!(serviceHost.State == CommunicationState.Created || serviceHost.State == CommunicationState.Opening))
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (2)
576if (this.State == CommunicationState.Opened) 592if (this.State == CommunicationState.Opened)
System\ServiceModel\Dispatcher\ChannelDispatcherCollection.cs (2)
43if (this.service.State == CommunicationState.Closed) 64if (this.service.State == CommunicationState.Closed)
System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
177if (this.listener.State == CommunicationState.Opened) 245get { return this.binder.Channel.State == CommunicationState.Opened; } 305if (this.binder.Channel.State == CommunicationState.Created)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (4)
316if (this.channel.State == CommunicationState.Faulted) 426if (this.channel.State == CommunicationState.Faulted) 1144public CommunicationState State 1309if (!this.closeState.TryBackgroundClose() || this.State != CommunicationState.Opened)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (4)
116if (context.State == CommunicationState.Opened) 126if (context.State == CommunicationState.Opened) 192if (rpc.InstanceContext.State == CommunicationState.Created) 196if (rpc.InstanceContext.State == CommunicationState.Created)
System\ServiceModel\Dispatcher\InstanceContextManager.cs (1)
85if (instance.State == CommunicationState.Opened)
System\ServiceModel\Dispatcher\ListenerHandler.cs (5)
165if (this.acceptedNull || (listener.State == CommunicationState.Faulted)) 187if (this.acceptedNull || (listener.State == CommunicationState.Faulted)) 217if (this.acceptedNull || (listener.State == CommunicationState.Faulted)) 434if (channel.State != CommunicationState.Closing && channel.State != CommunicationState.Closed)
System\ServiceModel\Dispatcher\ServiceThrottle.cs (1)
407if (this.host.State == CommunicationState.Opened)
System\ServiceModel\Dispatcher\SingletonInstanceContextProvider.cs (2)
39else if (instanceContext.State != CommunicationState.Opened) 46if (instanceContext.State != CommunicationState.Opened)
System\ServiceModel\ICommunicationObject.cs (1)
9CommunicationState State { get; }
System\ServiceModel\InstanceContext.cs (9)
198if (this.State == CommunicationState.Closed) 345CommunicationState state = channel.State; 346if (state == CommunicationState.Closing 347|| state == CommunicationState.Closed 348|| state == CommunicationState.Faulted) 358if (!(this.State != CommunicationState.Created && this.State != CommunicationState.Opening)) 363if (this.State != CommunicationState.Opened) 374if (this.State == CommunicationState.Opened)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (2)
252CommunicationState state = this.CommunicationObject.State; 253if (state == CommunicationState.Created)
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (4)
671if (this.isTimerCancelled || (this.CommunicationObject.State != CommunicationState.Opened && this.CommunicationObject.State != CommunicationState.Opening)) 697if (this.CommunicationObject.State == CommunicationState.Opened || this.CommunicationObject.State == CommunicationState.Opening)
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
410return this.CommunicationObject.State != CommunicationState.Created;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (18)
1370if (this.State != CommunicationState.Closed) 1448if (this.State != CommunicationState.Closed) 1650if (this.State == CommunicationState.Closed) 1701if (this.channel.State != CommunicationState.Closed) 1735if (self.channel.State != CommunicationState.Closed) 1777if (channel.State != CommunicationState.Closed) 1804if (self.channel.State != CommunicationState.Closed) 2094if (this.sessionChannel.State != CommunicationState.Closed) 2128if (thisResult.sessionChannel.State != CommunicationState.Closed) 2171if (this.sessionChannel.State != CommunicationState.Closed) 2201if (thisResult.sessionChannel.State != CommunicationState.Closed) 2349if (this.sessionChannel.State == CommunicationState.Closed) 2396if (self.sessionChannel.State == CommunicationState.Closed) 3300if (this.State == CommunicationState.Closed || this.State == CommunicationState.Faulted || this.IsInputClosed) 3505if (this.channel.State != CommunicationState.Closed) 3540if (this.channel.State != CommunicationState.Closed) 3585if (this.channel.State != CommunicationState.Closed)
System\ServiceModel\Security\SecuritySessionServerSettings.cs (37)
802if (this.communicationObject.State == CommunicationState.Closed 803|| this.communicationObject.State == CommunicationState.Faulted) 820if (this.communicationObject.State != CommunicationState.Closed 821&& this.communicationObject.State != CommunicationState.Closing 822&& this.communicationObject.State != CommunicationState.Faulted) 1028if (this.settings.communicationObject.State != CommunicationState.Opened) 1232if (this.State == CommunicationState.Closed || this.State == CommunicationState.Closing) 1308if (this.State != CommunicationState.Closed) 1525if (isInputClosed || this.State == CommunicationState.Faulted) 2330if (this.channel.State != CommunicationState.Closed) 2373if (self.channel.State != CommunicationState.Closed) 2435if (channel.State != CommunicationState.Closed) 2459if (self.channel.State != CommunicationState.Closed) 2690if (channel.isInputClosed || channel.State == CommunicationState.Faulted) 2955if (this.State != CommunicationState.Closed) 3041if (this.State != CommunicationState.Closed) 3060if (this.State == CommunicationState.Created) 3184if (this.sessionChannel.State != CommunicationState.Closed) 3228if (thisResult.sessionChannel.State != CommunicationState.Closed) 3277if (this.sessionChannel.State != CommunicationState.Closed) 3319if (thisResult.sessionChannel.State != CommunicationState.Closed) 3378if (this.sessionChannel.State != CommunicationState.Closed) 3417if (thisResult.sessionChannel.State != CommunicationState.Closed) 3742if (this.State != CommunicationState.Closed) throw; 3756if (this.State == CommunicationState.Closed) 3829if (this.State != CommunicationState.Closed) 3840if (this.State == CommunicationState.Created) 3993if (this.State != CommunicationState.Closed) throw; 4168if (sessionChannel.State != CommunicationState.Closed) throw; 4196if (thisResult.sessionChannel.State != CommunicationState.Closed) 4241if (this.sessionChannel.State != CommunicationState.Closed) 4282if (thisResult.sessionChannel.State != CommunicationState.Closed) 4349if (this.sessionChannel.State != CommunicationState.Closed) 4386if (thisResult.sessionChannel.State != CommunicationState.Closed) 4442if (this.sessionChannel.State != CommunicationState.Closed) throw; 4484if (thisResult.sessionChannel.State != CommunicationState.Closed)
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (6)
236public CommunicationState State 714if (this.channelFactory != null && this.channelFactory.State == CommunicationState.Opened) 727if (this.channelFactory != null && this.channelFactory.State == CommunicationState.Opened) 751return (this.channelFactory.State != CommunicationState.Opened); 756if (this.channelFactory.State == CommunicationState.Created) 764if (this.channelFactory.State == CommunicationState.Created)
System\ServiceModel\Security\WrappedSessionSecurityTokenAuthenticator.cs (1)
241public CommunicationState State
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (2)
169public CommunicationState State 346public CommunicationState State
System\ServiceModel\Security\WSTrustChannel.cs (1)
951public System.ServiceModel.CommunicationState State
System\ServiceModel\ServiceConfiguration.cs (2)
156if ((this.host.State != CommunicationState.Created) && (this.host.State != CommunicationState.Opening))
System\ServiceModel\ServiceHost.cs (19)
92else if (this.State == CommunicationState.Created || this.State == CommunicationState.Opening) 111else if (this.State == CommunicationState.Created || this.State == CommunicationState.Opening) 192else if (this.State == CommunicationState.Created || this.State == CommunicationState.Opening) 359if (this.State != CommunicationState.Created && this.State != CommunicationState.Opening) 393if (this.State != CommunicationState.Created && this.State != CommunicationState.Opening) 574Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 588Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 601Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 615Fx.Assert(this.State == CommunicationState.Created || this.State == CommunicationState.Opening, ""); 1120if (channelDispatcher.State == CommunicationState.Opened)
System.ServiceModel.Activation (1)
System\ServiceModel\ServiceHostingEnvironment.cs (1)
1047if (service.State != CommunicationState.Opened)
System.ServiceModel.Activities (17)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (2)
215if (thisPtr.Host.State == CommunicationState.Opening || thisPtr.Host.State == CommunicationState.Opened)
System\ServiceModel\Activities\Dispatcher\PersistenceContext.cs (1)
477Fx.AssertAndThrow(State != CommunicationState.Opened,
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
2699if (this.workflowInstance.persistenceContext.State != CommunicationState.Opened) 3616if (this.instance.persistenceContext != null && this.instance.persistenceContext.State == CommunicationState.Created)
System\ServiceModel\Activities\InternalSendMessage.cs (10)
1772if (this.channel.State == CommunicationState.Created) 2831return this.channelFactory.State == CommunicationState.Created; 2879if (result != null && (result.State != CommunicationState.Opened || (serviceChannel != null && serviceChannel.Binder.Channel.State != CommunicationState.Opened))) 2915bool shouldDispose = channel.State != CommunicationState.Opened; 2930if (this.channelFactory.State != CommunicationState.Closed && 2931this.channelFactory.State != CommunicationState.Closing) 2953if (this.channelFactory.State != CommunicationState.Closed && 2954this.channelFactory.State != CommunicationState.Closing) 2967if (communicationObject.State == CommunicationState.Opened)
System\ServiceModel\Activities\WorkflowServiceHost.cs (2)
222return this.State == CommunicationState.Created || this.State == CommunicationState.Opening;
System.ServiceModel.Channels (10)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (4)
37if (this.State == CommunicationState.Opened) 72if (this.State == CommunicationState.Opened) 198if (this.State != CommunicationState.Opened) 222if (this.State != CommunicationState.Opened)
System\ServiceModel\Channels\UdpChannelBase.cs (2)
220if (this.State == CommunicationState.Opened) 224if (this.State == CommunicationState.Opened)
System\ServiceModel\Channels\UdpChannelFactory.cs (1)
337if (this.State == CommunicationState.Created)
System\ServiceModel\Channels\UdpChannelListener.cs (3)
194Fx.Assert(this.State != CommunicationState.Opened, "buffer manager should only be null when closing down and the channel instance has taken control of the receive manager."); 466if (this.State != CommunicationState.Opened) 468Fx.Assert(this.State > CommunicationState.Opened, "DispatchMessage called when object is not fully opened. This would indicate that the receive loop started before transitioning to CommunicationState.Opened, which should not happen.");
System.ServiceModel.Discovery (5)
System\ServiceModel\Discovery\AnnouncementClient.cs (2)
221if (((ICommunicationObject)this).State != CommunicationState.Created) 261CommunicationState ICommunicationObject.State
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
222CommunicationState ICommunicationObject.State
System\ServiceModel\Discovery\OnlineAnnouncementChannelDispatcher.cs (2)
126if (this.State != CommunicationState.Opening) 146if (this.State != CommunicationState.Opening)
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\IRoutingClient.cs (1)
17CommunicationState State { get; }
System.WorkflowServices (10)
System\ServiceModel\Dispatcher\DurableInstanceProvider.cs (2)
46if (instanceContext.State == CommunicationState.Faulted || instanceContext.Aborted) 51else if (instanceContext.State == CommunicationState.Closed)
System\ServiceModel\Dispatcher\WorkflowInstanceProvider.cs (1)
23if (instanceContext.State == CommunicationState.Faulted || instanceContext.Aborted)
System\Workflow\Runtime\Hosting\ChannelManager.cs (6)
100bool connectionIsStillGood = (channel.State == CommunicationState.Opened); 161while (channel != null && channel.State != CommunicationState.Opened) 234bool invalidFactory = (channelFactory.ChannelFactory.State != CommunicationState.Opened); 262if (factory == null || factory.ChannelFactory.State != CommunicationState.Opened) 376public CommunicationState State 399if (this.channel.State == CommunicationState.Opened)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
73if (communicationObject.State == CommunicationState.Opened)