Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / CloseCryptoHandleRequest.cs / 1 / CloseCryptoHandleRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections; using System.Diagnostics; using System.Threading; //ManualResetEvent using System.ComponentModel; //Win32Exception using System.IO; //Stream using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; using System.Security.Principal; // // Summary: // Handles a request to close a CryptoSession. // class CloseCryptoHandleRequest : ClientRequest { // // The cryptosession id we are attaching to. // int m_cryptoSession; // // Sumamry: // Construct an CloseCryptoHandleRequest object // // Arguments: // callingProcess - The process in which the caller originated. // callingIdentity - The WindowsIdentity of the caller // rpcHandle - The handle of the native RPC request // inArgs - The stream to read input data from // outArgs - The stream to write output data to // public CloseCryptoHandleRequest( Process callingProcess, WindowsIdentity callingIdentity, IntPtr rpcHandle, Stream inArgs, Stream outArgs ) : base( callingProcess, callingIdentity, rpcHandle, inArgs, outArgs ) { IDT.TraceDebug( "Intiating an CloseCryptoHandleRequest request" ); } protected override void OnMarshalInArgs() { IDT.DebugAssert( null != InArgs, "null inargs" ); BinaryReader reader = new InfoCardBinaryReader( InArgs ); m_cryptoSession = reader.ReadInt32(); IDT.ThrowInvalidArgumentConditional( 0 == m_cryptoSession, "cryptoSession" ); } protected override void OnMarshalOutArgs() { } // // Summary // Closes a cryptoSession. // protected override void OnProcess() { CryptoSession session = CryptoSession.Find( m_cryptoSession, CallerPid, RequestorIdentity.User ); session.Dispose(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNodeChangedEventManager.cs
- DictionaryContent.cs
- SqlPersonalizationProvider.cs
- ThousandthOfEmRealDoubles.cs
- ZipPackage.cs
- HashStream.cs
- BindStream.cs
- WmlTextBoxAdapter.cs
- _UriSyntax.cs
- Assert.cs
- IListConverters.cs
- SaveLedgerEntryRequest.cs
- DbParameterHelper.cs
- ListControlDataBindingHandler.cs
- WebContentFormatHelper.cs
- WaitHandle.cs
- TransactionFilter.cs
- BaseResourcesBuildProvider.cs
- PresentationAppDomainManager.cs
- InfoCardMetadataExchangeClient.cs
- Slider.cs
- CodeNamespaceCollection.cs
- ImportCatalogPart.cs
- SqlMetaData.cs
- MetadataWorkspace.cs
- BinaryMethodMessage.cs
- DispatcherTimer.cs
- DictionaryContent.cs
- ListControlConvertEventArgs.cs
- Package.cs
- ViewgenGatekeeper.cs
- PerfCounters.cs
- SqlBulkCopy.cs
- RepeaterItemEventArgs.cs
- HttpHandlerActionCollection.cs
- SchemaCollectionPreprocessor.cs
- ToolStripDropDown.cs
- _ProxyRegBlob.cs
- CodeAssignStatement.cs
- MethodToken.cs
- UnicastIPAddressInformationCollection.cs
- LinkArea.cs
- TextSelectionHelper.cs
- Char.cs
- AnnotationAdorner.cs
- BamlWriter.cs
- SpecularMaterial.cs
- ComponentManagerBroker.cs
- ServiceChannelManager.cs
- HttpGetServerProtocol.cs
- DiagnosticEventProvider.cs
- BamlRecordWriter.cs
- TokenBasedSetEnumerator.cs
- COAUTHIDENTITY.cs
- WebBrowser.cs
- WhitespaceReader.cs
- TriState.cs
- _AutoWebProxyScriptEngine.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewIntLinkedList.cs
- CqlParser.cs
- FacetValues.cs
- LightweightCodeGenerator.cs
- PropertyEntry.cs
- XmlHierarchyData.cs
- UIElementPropertyUndoUnit.cs
- ActivitiesCollection.cs
- _UriTypeConverter.cs
- WebPartTracker.cs
- UserPreferenceChangingEventArgs.cs
- AdobeCFFWrapper.cs
- OleDbCommand.cs
- ClrPerspective.cs
- FormsAuthenticationEventArgs.cs
- XDRSchema.cs
- SecurityUtils.cs
- GenericWebPart.cs
- HtmlTernaryTree.cs
- Activity.cs
- UnsafeNativeMethods.cs
- TextParagraphView.cs
- ToolBar.cs
- TextOnlyOutput.cs
- DiscoveryDocumentSearchPattern.cs
- EnumValAlphaComparer.cs
- BindingExpressionUncommonField.cs
- SiteMapDataSource.cs
- ExtendedTransformFactory.cs
- SemaphoreFullException.cs
- WhileDesigner.xaml.cs
- ParentUndoUnit.cs
- ExceptionRoutedEventArgs.cs
- PrtCap_Base.cs
- UrlMappingsSection.cs
- SqlAliasesReferenced.cs
- ConfigurationHelpers.cs
- HtmlTableCell.cs
- PackageDigitalSignatureManager.cs
- BufferAllocator.cs
- PrivilegedConfigurationManager.cs