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
- TablePattern.cs
- SubMenuStyle.cs
- GridPatternIdentifiers.cs
- GridViewAutomationPeer.cs
- FixedSOMPageConstructor.cs
- DurableEnlistmentState.cs
- Table.cs
- SafeNativeMethods.cs
- EntityDataSourceWrapper.cs
- cookie.cs
- PropertyContainer.cs
- BorderGapMaskConverter.cs
- ConnectionConsumerAttribute.cs
- MaxSessionCountExceededException.cs
- NamedPipeConnectionPoolSettings.cs
- ACL.cs
- DesignTimeVisibleAttribute.cs
- InvalidEnumArgumentException.cs
- newinstructionaction.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MetafileHeaderWmf.cs
- Nullable.cs
- BindingsCollection.cs
- SqlTopReducer.cs
- SiteIdentityPermission.cs
- ReferenceConverter.cs
- ManagementNamedValueCollection.cs
- PropertyPathWorker.cs
- AuthenticationConfig.cs
- xdrvalidator.cs
- MetafileHeaderWmf.cs
- RSAPKCS1SignatureDeformatter.cs
- __TransparentProxy.cs
- WebServiceErrorEvent.cs
- ApplicationSecurityManager.cs
- IconBitmapDecoder.cs
- WebPartCatalogCloseVerb.cs
- CustomTypeDescriptor.cs
- PagerStyle.cs
- ExpressionVisitor.cs
- WindowsIdentity.cs
- CryptoKeySecurity.cs
- PrintDialog.cs
- MouseCaptureWithinProperty.cs
- CodeIdentifier.cs
- SqlTypeConverter.cs
- Command.cs
- PlatformCulture.cs
- TemplateXamlParser.cs
- ListControlConvertEventArgs.cs
- TextFormatter.cs
- ExecutionEngineException.cs
- InstanceOwner.cs
- TrustManager.cs
- ColorConvertedBitmapExtension.cs
- CodeThrowExceptionStatement.cs
- HtmlLink.cs
- DurationConverter.cs
- XmlStreamStore.cs
- MDIClient.cs
- CodeBlockBuilder.cs
- TimeSpanSecondsConverter.cs
- documentsequencetextview.cs
- StreamResourceInfo.cs
- EnterpriseServicesHelper.cs
- PtsCache.cs
- Margins.cs
- ValidationSummary.cs
- AsymmetricSignatureDeformatter.cs
- HotSpotCollection.cs
- String.cs
- DateTimePicker.cs
- Pen.cs
- TextShapeableCharacters.cs
- TextDataBindingHandler.cs
- FrameworkContentElementAutomationPeer.cs
- NextPreviousPagerField.cs
- FormatException.cs
- SQLGuidStorage.cs
- _emptywebproxy.cs
- Canvas.cs
- Focus.cs
- ApplicationInterop.cs
- PeerTransportSecurityElement.cs
- RubberbandSelector.cs
- RightsManagementPermission.cs
- AuthenticationSection.cs
- DataView.cs
- AlgoModule.cs
- IApplicationTrustManager.cs
- PropertyMappingExceptionEventArgs.cs
- WebPartDescriptionCollection.cs
- AssertSection.cs
- RestHandlerFactory.cs
- DbXmlEnabledProviderManifest.cs
- QilGenerator.cs
- HitTestDrawingContextWalker.cs
- StorageTypeMapping.cs
- ModelFunctionTypeElement.cs
- Root.cs