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
- BitStream.cs
- LinqDataView.cs
- QueryOutputWriter.cs
- XmlDataSource.cs
- SharedConnectionInfo.cs
- figurelengthconverter.cs
- ParameterRetriever.cs
- ClientFactory.cs
- SignerInfo.cs
- AffineTransform3D.cs
- NamespaceInfo.cs
- DeviceContext2.cs
- Operators.cs
- ApplicationContext.cs
- DataBinding.cs
- DocumentDesigner.cs
- Trustee.cs
- HttpCachePolicyElement.cs
- AnnouncementInnerClient11.cs
- RectIndependentAnimationStorage.cs
- BitmapSourceSafeMILHandle.cs
- PlacementWorkspace.cs
- Style.cs
- OdbcCommandBuilder.cs
- SHA384CryptoServiceProvider.cs
- PathSegment.cs
- SelectionGlyphBase.cs
- TreeViewItem.cs
- InputLanguageEventArgs.cs
- GridViewAutomationPeer.cs
- HashRepartitionStream.cs
- WebEventTraceProvider.cs
- StrokeSerializer.cs
- UnsignedPublishLicense.cs
- WhitespaceRuleReader.cs
- CharacterBuffer.cs
- DispatcherEventArgs.cs
- Hyperlink.cs
- TextEditorDragDrop.cs
- ContentElement.cs
- WorkflowFileItem.cs
- SqlAggregateChecker.cs
- EastAsianLunisolarCalendar.cs
- Maps.cs
- ProfessionalColorTable.cs
- Int32EqualityComparer.cs
- BindingBase.cs
- ObjectViewFactory.cs
- Timer.cs
- SqlServices.cs
- TdsRecordBufferSetter.cs
- HostUtils.cs
- Item.cs
- RegistrationServices.cs
- FixedPosition.cs
- SpecialFolderEnumConverter.cs
- SyndicationDeserializer.cs
- DebugInfoExpression.cs
- DocumentGrid.cs
- COMException.cs
- EUCJPEncoding.cs
- DatagridviewDisplayedBandsData.cs
- FileAuthorizationModule.cs
- GestureRecognitionResult.cs
- MetadataItemCollectionFactory.cs
- SmiGettersStream.cs
- NativeActivity.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ConfigUtil.cs
- StylusCollection.cs
- DispatcherOperation.cs
- Types.cs
- StructuralCache.cs
- DateTime.cs
- NumericExpr.cs
- ToolStripDropTargetManager.cs
- OptionalMessageQuery.cs
- HostAdapter.cs
- AttachedPropertyMethodSelector.cs
- SafeSecurityHandles.cs
- ImpersonateTokenRef.cs
- MetadataItem_Static.cs
- HotSpot.cs
- XPathBuilder.cs
- InheritanceContextChangedEventManager.cs
- StringValueSerializer.cs
- MorphHelpers.cs
- KeyMatchBuilder.cs
- TraceSection.cs
- CommonXSendMessage.cs
- SourceFilter.cs
- VirtualDirectoryMappingCollection.cs
- TrackingServices.cs
- MessageDecoder.cs
- CodeAccessPermission.cs
- DateTimeSerializationSection.cs
- SuppressIldasmAttribute.cs
- ControlBindingsConverter.cs
- ServiceProviders.cs
- WrappedKeySecurityToken.cs