125 references to InfoCardTrace
System.IdentityModel.Selectors (125)
infocard\client\System\IdentityModel\Selectors\AsymmetricCryptoHandle.cs (1)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\client\System\IdentityModel\Selectors\CardSpaceException.cs (12)
10
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
19
throw
IDT
.ThrowHelperError(new CardSpaceException(SR.GetString(SR.ClientAPIInfocardError)));
22
throw
IDT
.ThrowHelperError(new UserCancellationException(SR.GetString(SR.ClientAPIUserCancellationError)));
25
throw
IDT
.ThrowHelperError(new ServiceNotStartedException(SR.GetString(SR.ClientAPIServiceNotStartedError)));
28
throw
IDT
.ThrowHelperError(new UntrustedRecipientException(SR.GetString(SR.ClientAPIUntrustedRecipientError)));
31
throw
IDT
.ThrowHelperError(new StsCommunicationException(SR.GetString(SR.ClientStsCommunicationException)));
34
throw
IDT
.ThrowHelperError(new IdentityValidationException(SR.GetString(SR.ClientAPIInvalidIdentity)));
37
throw
IDT
.ThrowHelperError(new ServiceBusyException(SR.GetString(SR.ClientAPIServiceBusy)));
40
throw
IDT
.ThrowHelperError(new PolicyValidationException(SR.GetString(SR.ClientAPIInvalidPolicy)));
43
throw
IDT
.ThrowHelperError(new UnsupportedPolicyOptionsException(SR.GetString(SR.ClientAPIUnsupportedPolicyOptions)));
46
throw
IDT
.ThrowHelperError(new UIInitializationException(SR.GetString(SR.ClientAPIUIInitializationFailed)));
49
throw
IDT
.ThrowHelperError(new CardSpaceException(SR.GetString(SR.ClientAPICannotImport)));
infocard\client\System\IdentityModel\Selectors\CardSpacePolicyElement.cs (3)
13
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
75
IDT
.ThrowInvalidArgumentConditional(0 == privacyNoticeVersion && null != privacyNoticeLink, "privacyNoticeVersion");
76
IDT
.ThrowInvalidArgumentConditional(0 != privacyNoticeVersion && null == privacyNoticeLink, "privacyNoticeLink");
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (18)
31
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
109
throw
IDT
.ThrowHelperArgumentNull("endpoint");
114
throw
IDT
.ThrowHelperArgumentNull("policy");
119
throw
IDT
.ThrowHelperArgumentNull("tokenSerializer");
142
IDT
.TraceDebug("ICARDCLIENT: GetToken called with a policy chain of length {0}", policyChain.Length);
153
throw
IDT
.ThrowHelperArgumentNull("policyChain");
157
throw
IDT
.ThrowHelperArgumentNull("tokenSerializer");
162
throw
IDT
.ThrowHelperArgumentNull("tokenSerializer");
184
IDT
.TraceDebug("ICARDCLIENT: PInvoking the native GetToken call");
197
IDT
.TraceDebug("ICARDCLIENT: The PInvoke of GetToken succeeded");
237
IDT
.TraceDebug("ICARDCLIENT: Constructing a new GenericXmlSecurityToken");
249
IDT
.TraceDebug("ICARDCLIENT: The PInvoke of GetToken failed with a return code of {0}", result);
255
throw
IDT
.ThrowHelperError(new CardSpaceException(SR.GetString(SR.ClientAPIInfocardError)));
299
throw
IDT
.ThrowHelperError(new CardSpaceException(SR.GetString(SR.ClientAPIInfocardError)));
312
throw
IDT
.ThrowHelperArgumentNull("fileName");
316
IDT
.TraceDebug("Import Infocard has been called");
328
throw
IDT
.ThrowHelperError(new CardSpaceException(SR.GetString(SR.ClientAPIInfocardError)));
358
throw
IDT
.ThrowHelperError(new ArgumentException(SR.GetString(SR.ClientAPIInvalidPolicy)));
infocard\client\System\IdentityModel\Selectors\CardSpaceShim.cs (4)
24
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
196
IDT
.Assert(!m_isInitialized, "If an exception occurred, we expect this to be false");
269
IDT
.Assert(!String.IsNullOrEmpty(v2AndAboveImplementationDll), "v2AndAboveImplementationDll should not be empty");
308
throw
IDT
.ThrowHelperError(
infocard\client\System\IdentityModel\Selectors\CryptoHandle.cs (5)
20
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
110
throw
IDT
.ThrowHelperError(new ObjectDisposedException(SR.GetString(SR.ClientCryptoSessionDisposed)));
159
IDT
.DebugAssert(false, "Invalid crypto operation type");
160
throw
IDT
.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.GeneralExceptionMessage)));
260
throw
IDT
.ThrowHelperError(new ObjectDisposedException("InternalRefCountedHandle"));
infocard\client\System\IdentityModel\Selectors\HashCryptoHandle.cs (1)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\client\System\IdentityModel\Selectors\InfoCardAsymmetricCrypto.cs (7)
11
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
76
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
94
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
113
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
132
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
161
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
190
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (7)
20
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
59
IDT
.CloseInvalidOutSafeHandle(nativeHandle);
61
throw
IDT
.ThrowHelperError(new Win32Exception(status));
82
get { throw
IDT
.ThrowHelperError(new NotImplementedException()); }
145
throw
IDT
.ThrowHelperError(new Win32Exception(status));
180
IDT
.DebugAssert(null != m_cachedBlock, "null cached block");
203
throw
IDT
.ThrowHelperError(new Win32Exception(status));
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (18)
13
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
72
throw
IDT
.ThrowHelperError(new NotSupportedException());
77
throw
IDT
.ThrowHelperError(new NotSupportedException());
85
IDT
.ThrowInvalidArgumentConditional(null == inData, "indata");
99
throw
IDT
.ThrowHelperError(new Win32Exception(status));
117
IDT
.ThrowInvalidArgumentConditional(null == inData, "indata");
131
throw
IDT
.ThrowHelperError(new Win32Exception(status));
144
IDT
.ThrowInvalidArgumentConditional(null == hash || 0 == hash.Length, "hash");
145
IDT
.ThrowInvalidArgumentConditional(String.IsNullOrEmpty(hashAlgOid), "hashAlgOid");
167
throw
IDT
.ThrowHelperError(new Win32Exception(status));
184
IDT
.ThrowInvalidArgumentConditional(null == hash || 0 == hash.Length, "hash");
185
IDT
.ThrowInvalidArgumentConditional(String.IsNullOrEmpty(hashAlgOid), "hashAlgOid");
186
IDT
.ThrowInvalidArgumentConditional(null == sig || 0 == sig.Length, "sig");
211
throw
IDT
.ThrowHelperError(new Win32Exception(status));
222
throw
IDT
.ThrowHelperError(new NotSupportedException());
227
throw
IDT
.ThrowHelperError(new NotSupportedException());
232
throw
IDT
.ThrowHelperError(new NotSupportedException());
237
throw
IDT
.ThrowHelperError(new NotSupportedException());
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (14)
22
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
85
throw
IDT
.ThrowHelperError(new NotImplementedException());
89
throw
IDT
.ThrowHelperError(new NotImplementedException());
108
throw
IDT
.ThrowHelperError(new NotImplementedException());
121
throw
IDT
.ThrowHelperError(new NotImplementedException());
126
throw
IDT
.ThrowHelperError(new NotImplementedException());
183
IDT
.CloseInvalidOutSafeHandle(nativeHandle);
185
throw
IDT
.ThrowHelperError(new Win32Exception(status));
234
IDT
.DebugAssert(null != inputBuffer && 0 != inputBuffer.Length, "null input buffer");
235
IDT
.DebugAssert(0 != inputCount, "0 input count");
248
throw
IDT
.ThrowHelperError(new Win32Exception(status));
277
IDT
.DebugAssert(null != inputBuffer && 0 != inputBuffer.Length, "null input buffer");
278
IDT
.DebugAssert(0 != inputCount, "0 input count");
296
throw
IDT
.ThrowHelperError(new Win32Exception(status));
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (14)
14
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
67
throw
IDT
.ThrowHelperError(new NotImplementedException());
72
throw
IDT
.ThrowHelperError(new NotImplementedException());
108
IDT
.DebugAssert(!String.IsNullOrEmpty(algorithmUri), "null alg uri");
109
IDT
.DebugAssert(null != label && 0 != label.Length, "null label");
110
IDT
.DebugAssert(null != nonce && 0 != nonce.Length, "null nonce");
114
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
141
throw
IDT
.ThrowHelperError(new Win32Exception(status));
178
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
207
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
228
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
245
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
262
throw
IDT
.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ClientUnsupportedCryptoAlgorithm, algorithmUri)));
270
throw
IDT
.ThrowHelperError(new NotImplementedException());
infocard\client\System\IdentityModel\Selectors\InternalPolicyElement.cs (3)
14
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
41
throw
IDT
.ThrowHelperArgumentNull("PolicyElement.Target");
68
IDT
.DebugAssert(IntPtr.Zero == m_nativePtr, "Pointer already assigned");
infocard\client\System\IdentityModel\Selectors\NativeMethods.cs (2)
11
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
36
throw
IDT
.ThrowHelperError(new Win32Exception(
infocard\client\System\IdentityModel\Selectors\ProofTokenCryptoHandle.cs (1)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\client\System\IdentityModel\Selectors\SymmetricCryptoHandle.cs (1)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\client\System\IdentityModel\Selectors\ThrowOnMultipleAssignment.cs (3)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
29
throw
IDT
.ThrowHelperArgument(m_errorString);
46
IDT
.DebugAssert(!String.IsNullOrEmpty(errorString), "Must have an error string");
infocard\client\System\IdentityModel\Selectors\TransformCryptoHandle.cs (1)
9
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\common\managed\GlobalAllocSafeHandle.cs (1)
12
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
infocard\common\managed\HGlobalSafeHandle.cs (5)
12
using IDT = Microsoft.InfoCards.Diagnostics.
InfoCardTrace
;
30
IDT
.DebugAssert(!String.IsNullOrEmpty(managedString), "null string");
39
IDT
.DebugAssert(bytes > 0, "attempt to allocate a handle with <= 0 bytes");
79
IDT
.DebugAssert(!IsInvalid, "handle is invalid in release handle");
80
IDT
.DebugAssert(0 != m_bytes, "invalid size");
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (1)
127
SafeEventLogHandle h = RegisterEventSource(null,
InfoCardTrace
.InfoCardEventSource);
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\infocardTraceRecord.cs (3)
47
InfoCardTrace
.Assert( !String.IsNullOrEmpty( eventID ), "null eventid" );
48
InfoCardTrace
.Assert( !String.IsNullOrEmpty( message ), "null message" );
77
InfoCardTrace
.Assert( null != writer, "null writer" );