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
- AsyncStreamReader.cs
- Debug.cs
- BasicExpandProvider.cs
- DataGrid.cs
- BidOverLoads.cs
- Soap.cs
- SmiRecordBuffer.cs
- X500Name.cs
- ApplicationBuildProvider.cs
- ObservableCollection.cs
- XdrBuilder.cs
- SrgsRulesCollection.cs
- SplitterCancelEvent.cs
- WebPartEditorApplyVerb.cs
- XPathSelfQuery.cs
- ActivityPropertyReference.cs
- UInt16.cs
- EntitySqlQueryBuilder.cs
- XmlSecureResolver.cs
- SequenceFullException.cs
- Error.cs
- control.ime.cs
- DbSetClause.cs
- CngKey.cs
- AppDomainProtocolHandler.cs
- HashCodeCombiner.cs
- BidirectionalDictionary.cs
- FontSizeConverter.cs
- CompilerLocalReference.cs
- Operator.cs
- HttpListenerException.cs
- HandleValueEditor.cs
- CollectionEditor.cs
- SharedTcpTransportManager.cs
- DbMetaDataColumnNames.cs
- SynchronizedInputProviderWrapper.cs
- SessionIDManager.cs
- ToolStripRendererSwitcher.cs
- GroupBoxRenderer.cs
- WebPartManagerInternals.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- XmlSchemaObjectTable.cs
- TargetConverter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WaitHandleCannotBeOpenedException.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- WebServiceHandler.cs
- User.cs
- HtmlTableCellCollection.cs
- LedgerEntry.cs
- XsltException.cs
- DrawingGroupDrawingContext.cs
- GeneralTransform3DGroup.cs
- ProtocolsSection.cs
- PowerModeChangedEventArgs.cs
- GroupItem.cs
- PrimitiveRenderer.cs
- WindowShowOrOpenTracker.cs
- MultipleViewProviderWrapper.cs
- MsdtcWrapper.cs
- WebPartCatalogAddVerb.cs
- HelloMessageApril2005.cs
- HashJoinQueryOperatorEnumerator.cs
- MemberDomainMap.cs
- StylusPointCollection.cs
- SHA512.cs
- DataGridViewCellParsingEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- SamlAdvice.cs
- HtmlInputReset.cs
- SymLanguageVendor.cs
- CodeDirectiveCollection.cs
- UrlMappingsSection.cs
- WebAdminConfigurationHelper.cs
- MessagePartProtectionMode.cs
- XmlReader.cs
- SapiRecognizer.cs
- DocumentPage.cs
- WebServiceFault.cs
- GacUtil.cs
- TreeNodeBinding.cs
- MissingFieldException.cs
- SemanticResultValue.cs
- ProviderConnectionPointCollection.cs
- HighlightVisual.cs
- ActivityDelegate.cs
- LinkLabel.cs
- RijndaelCryptoServiceProvider.cs
- SystemColorTracker.cs
- SqlExpander.cs
- LayoutDump.cs
- ClientSettingsSection.cs
- assertwrapper.cs
- EventLogRecord.cs
- CompilationLock.cs
- ListBindingHelper.cs
- ResourcesGenerator.cs
- StylusCollection.cs
- GenericEnumerator.cs
- WebPartHelpVerb.cs