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
- TemplateKeyConverter.cs
- CacheChildrenQuery.cs
- PeerCollaborationPermission.cs
- HttpListenerRequestUriBuilder.cs
- SqlConnectionPoolProviderInfo.cs
- UshortList2.cs
- InstanceDataCollection.cs
- ByeOperation11AsyncResult.cs
- TreeNode.cs
- LogicalChannel.cs
- SR.cs
- HttpCookiesSection.cs
- CodeTypeMemberCollection.cs
- ZoomPercentageConverter.cs
- QilGeneratorEnv.cs
- PageSettings.cs
- TypeUsage.cs
- CaseKeyBox.ViewModel.cs
- XamlInt32CollectionSerializer.cs
- RotationValidation.cs
- ConfigXmlElement.cs
- ControlEvent.cs
- SetStoryboardSpeedRatio.cs
- Stylesheet.cs
- DesignOnlyAttribute.cs
- DesignerLoader.cs
- SchemaImporterExtensionElement.cs
- UrlPath.cs
- ObjectManager.cs
- HtmlTitle.cs
- XmlSchemaParticle.cs
- EncryptedPackageFilter.cs
- DataGridBeginningEditEventArgs.cs
- CacheEntry.cs
- CheckableControlBaseAdapter.cs
- FontFamilyIdentifier.cs
- AnimatedTypeHelpers.cs
- NestedContainer.cs
- TTSEngineProxy.cs
- MatrixValueSerializer.cs
- URL.cs
- StaticResourceExtension.cs
- MonikerProxyAttribute.cs
- WebPartHelpVerb.cs
- VersionedStreamOwner.cs
- UnsafeNativeMethods.cs
- TransformPattern.cs
- SqlWebEventProvider.cs
- CellParagraph.cs
- HostAdapter.cs
- EntityModelBuildProvider.cs
- XmlElement.cs
- HMAC.cs
- TraceUtility.cs
- BindingMemberInfo.cs
- TypeConverterAttribute.cs
- ArcSegment.cs
- BitmapEffectInputData.cs
- ConnectivityStatus.cs
- CopyAttributesAction.cs
- ValidationErrorEventArgs.cs
- ProcessThread.cs
- DetailsViewRow.cs
- AdornerDecorator.cs
- TabRenderer.cs
- WindowsEditBox.cs
- BrowserDefinitionCollection.cs
- DbParameterHelper.cs
- SplitContainer.cs
- HtmlAnchor.cs
- ToolStripMenuItem.cs
- MetadataExchangeClient.cs
- DeflateEmulationStream.cs
- ConfigXmlText.cs
- TextSelectionHighlightLayer.cs
- ValueType.cs
- ConfigurationPermission.cs
- AudioBase.cs
- CalendarTable.cs
- HierarchicalDataSourceControl.cs
- ExternalException.cs
- CodePrimitiveExpression.cs
- regiisutil.cs
- keycontainerpermission.cs
- ArraySegment.cs
- OpenTypeLayout.cs
- _ScatterGatherBuffers.cs
- HttpCookie.cs
- ConfigurationFileMap.cs
- ReadOnlyHierarchicalDataSource.cs
- CompilationUtil.cs
- ImageClickEventArgs.cs
- OptimalTextSource.cs
- RTLAwareMessageBox.cs
- ToolStripOverflow.cs
- CodeBinaryOperatorExpression.cs
- ProjectionNode.cs
- AutomationPeer.cs
- AttributeCollection.cs
- objectresult_tresulttype.cs