21 references to Codes
System.ServiceModel (21)
System\ServiceModel\Channels\ServiceChannel.cs (4)
1116
if (string.Compare(code.Name, FaultCodeConstants.
Codes
.SessionTerminated, StringComparison.Ordinal) == 0)
1121
if (string.Compare(code.Name, FaultCodeConstants.
Codes
.TransactionAborted, StringComparison.Ordinal) == 0)
1141
if (string.Compare(code.Name, FaultCodeConstants.
Codes
.InternalServiceFault, StringComparison.Ordinal) == 0)
1154
if (string.Compare(code.Name, FaultCodeConstants.
Codes
.DeserializationFailed, StringComparison.Ordinal) == 0)
System\ServiceModel\Channels\TransactionChannel.cs (3)
120
FaultOnMessage(message, SR.GetString(SR.IssuedTokenFlowNotAllowed), FaultCodeConstants.
Codes
.IssuedTokenFlowNotAllowed);
140
FaultOnMessage(message, SR.GetString(SR.SFxTransactionDeserializationFailed, e.Message), FaultCodeConstants.
Codes
.TransactionHeaderMalformed);
149
FaultOnMessage(message, SR.GetString(SR.SFxTransactionFlowRequired), FaultCodeConstants.
Codes
.TransactionHeaderMissing);
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1188
FaultCode code = FaultCode.CreateSenderFaultCode(FaultCodeConstants.
Codes
.SessionTerminated,
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
78
FaultCode code = new FaultCode(FaultCodeConstants.
Codes
.InternalServiceFault, FaultCodeConstants.Namespaces.NetDispatch);
101
string.Compare(e.Fault.Code.SubCode.Name, FaultCodeConstants.
Codes
.InternalServiceFault, StringComparison.Ordinal) == 0)
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
543
FaultCode code = new FaultCode(FaultCodeConstants.
Codes
.DeserializationFailed, FaultCodeConstants.Namespaces.NetDispatch);
System\ServiceModel\Dispatcher\TransactionBehavior.cs (10)
211
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionUnmarshalFailed, e.Message), FaultCodeConstants.
Codes
.TransactionUnmarshalingFailed, false));
266
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));
322
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));
365
(SR.GetString(SR.IsolationLevelMismatch2, transaction.IsolationLevel, this.isolation), FaultCodeConstants.
Codes
.TransactionIsolationLevelMismatch, false), rpc.Request);
386
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));
599
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));
671
rpc.Error = TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true);
739
rpc.Error = TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true);
798
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));
823
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(TransactionBehavior.CreateFault(SR.GetString(SR.SFxTransactionAsyncAborted), FaultCodeConstants.
Codes
.TransactionAborted, true));