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