Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / UnlockCardRequest.cs / 1 / UnlockCardRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; using System.IO; class UnlockCardRequest : UIAgentRequest { InfoCard m_card; public UnlockCardRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } protected override void OnInitializeAsSystem() { base.OnInitializeAsSystem(); } protected override void OnMarshalInArgs() { m_card = new InfoCard( InArgs ); } protected override void OnProcess() { StoreConnection connection = StoreConnection.GetConnection(); try { m_card.Connection = connection; m_card.GetMasterKey( connection ); m_card.Decrypt(); } finally { connection.Close(); } } protected override void OnMarshalOutArgs() { StoreConnection connection = StoreConnection.GetConnection(); try { m_card.AgentSerialize( OutArgs, ( ParentRequest is GetTokenRequest ), GetPolicy(), connection, new System.Globalization.CultureInfo( ParentRequest.UserLanguage ) ); } finally { connection.Close(); } } } } // 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
- _CookieModule.cs
- DocumentXmlWriter.cs
- HttpRequestWrapper.cs
- Menu.cs
- ClientBuildManagerCallback.cs
- ServiceProviders.cs
- Image.cs
- DataGridViewColumnCollection.cs
- Label.cs
- MexTcpBindingCollectionElement.cs
- TextRangeAdaptor.cs
- SvcMapFileLoader.cs
- CaretElement.cs
- NumberFunctions.cs
- WebBrowserUriTypeConverter.cs
- CommandDesigner.cs
- WebPartPersonalization.cs
- Cursor.cs
- DesignerActionGlyph.cs
- OrderByLifter.cs
- ListenerAdapter.cs
- UInt64.cs
- KeyValuePairs.cs
- ContentFilePart.cs
- PreservationFileReader.cs
- StreamWriter.cs
- DataGridViewCheckBoxCell.cs
- ErrorStyle.cs
- MimeTypePropertyAttribute.cs
- DispatcherExceptionEventArgs.cs
- FormViewDesigner.cs
- TransactionFlowProperty.cs
- DesignerDeviceConfig.cs
- precedingsibling.cs
- ActivityWithResult.cs
- SettingsContext.cs
- ByteConverter.cs
- FormatVersion.cs
- SourceItem.cs
- DataSet.cs
- coordinator.cs
- EditingCommands.cs
- StringConverter.cs
- EventLogger.cs
- CharKeyFrameCollection.cs
- DataGridGeneralPage.cs
- DbMetaDataColumnNames.cs
- CodeAttributeDeclarationCollection.cs
- HandlerBase.cs
- DataMisalignedException.cs
- CrossSiteScriptingValidation.cs
- ImageCodecInfo.cs
- SecurityUtils.cs
- Walker.cs
- _KerberosClient.cs
- ObjectQuery.cs
- SharedUtils.cs
- DrawingGroupDrawingContext.cs
- ProcessProtocolHandler.cs
- ColorInterpolationModeValidation.cs
- ElementProxy.cs
- HttpListenerException.cs
- Panel.cs
- CasesDictionary.cs
- SafeFileMappingHandle.cs
- FontFamilyConverter.cs
- DiscoveryOperationContext.cs
- BehaviorService.cs
- XmlSchemaComplexContentRestriction.cs
- XmlTextReader.cs
- OracleSqlParser.cs
- XslAst.cs
- IconHelper.cs
- AddressHeaderCollection.cs
- WebPartTracker.cs
- EmptyEnumerable.cs
- TextTreePropertyUndoUnit.cs
- BypassElement.cs
- AttributeData.cs
- ThreadExceptionEvent.cs
- SqlSelectClauseBuilder.cs
- XmlSchemaNotation.cs
- _SslState.cs
- LinqDataSourceHelper.cs
- ScrollProviderWrapper.cs
- ComMethodElement.cs
- QueryOutputWriter.cs
- shaperfactoryquerycacheentry.cs
- XmlLanguageConverter.cs
- DesignerAdapterAttribute.cs
- HttpStreamMessageEncoderFactory.cs
- JsonFormatReaderGenerator.cs
- FixedNode.cs
- Executor.cs
- GenericPrincipal.cs
- BulletChrome.cs
- TextFormatterImp.cs
- ObfuscateAssemblyAttribute.cs
- IResourceProvider.cs
- MessageFormatterConverter.cs