Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / GetCardDetailsRequest.cs / 1 / GetCardDetailsRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections; using System.IO; using System.Runtime.InteropServices; using System.Collections.Generic; class GetCardDetailsRequest : UIAgentRequest { InfoCard m_card; bool m_cardMatchesPolicyRequirements = false; public GetCardDetailsRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } protected override void OnInitializeAsSystem() { base.OnInitializeAsSystem(); } protected override void OnMarshalInArgs() { Stream stream = InArgs; m_card = new InfoCard( stream ); m_card.GetExtendedInformation().Deserialize( stream ); m_card.GetRPIdentityRequirement().Deserialize( stream ); m_card.GetClaims().Deserialize( stream ); } protected override void OnProcess() { m_cardMatchesPolicyRequirements = m_card.DoesCardMatchPolicySet( GetPolicy() ); } protected override void OnMarshalOutArgs() { Stream stream = OutArgs; BinaryWriter writer = new BinaryWriter( stream, System.Text.Encoding.Unicode ); writer.Write( m_cardMatchesPolicyRequirements ); } } } // 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
- ClrPerspective.cs
- NotSupportedException.cs
- PagesSection.cs
- GridViewSortEventArgs.cs
- RepeaterItemCollection.cs
- ToolStripSeparator.cs
- ValueSerializerAttribute.cs
- GenerateScriptTypeAttribute.cs
- PropertyGeneratedEventArgs.cs
- DotExpr.cs
- MulticastNotSupportedException.cs
- RSACryptoServiceProvider.cs
- QuaternionValueSerializer.cs
- VideoDrawing.cs
- LexicalChunk.cs
- AssemblyResourceLoader.cs
- ObjectStateFormatter.cs
- Setter.cs
- AdapterDictionary.cs
- OutputCacheProfile.cs
- RoutedEventArgs.cs
- DerivedKeySecurityTokenStub.cs
- MenuBase.cs
- ListView.cs
- InplaceBitmapMetadataWriter.cs
- MemberProjectionIndex.cs
- StateMachine.cs
- HijriCalendar.cs
- ActivityWithResultConverter.cs
- LineBreak.cs
- SoapProtocolImporter.cs
- XmlSchemaType.cs
- DataColumn.cs
- XmlSerializerImportOptions.cs
- SQLStringStorage.cs
- AutomationElement.cs
- CompilerResults.cs
- SvcMapFileSerializer.cs
- ExpressionBuilder.cs
- _LocalDataStore.cs
- ValidationEventArgs.cs
- AppDomainCompilerProxy.cs
- SelectionProviderWrapper.cs
- TextWriterTraceListener.cs
- TableLayoutPanelDesigner.cs
- Matrix3DConverter.cs
- TraceContextEventArgs.cs
- AssemblyResourceLoader.cs
- WebPartConnectVerb.cs
- ToolboxDataAttribute.cs
- FirstMatchCodeGroup.cs
- ObjectParameter.cs
- TextWriter.cs
- HttpRawResponse.cs
- TypeHelper.cs
- ProjectionCamera.cs
- TextServicesCompartmentEventSink.cs
- OleDbErrorCollection.cs
- ReaderContextStackData.cs
- DataGridViewCheckBoxCell.cs
- XmlNullResolver.cs
- ColumnTypeConverter.cs
- NativeWindow.cs
- NetworkInformationException.cs
- basecomparevalidator.cs
- PartEditor.cs
- TreeViewItemAutomationPeer.cs
- PropertyChangedEventManager.cs
- Visitor.cs
- EnumValidator.cs
- CompressEmulationStream.cs
- ExtendedProtectionPolicy.cs
- TypedReference.cs
- DeviceSpecificDesigner.cs
- TransactedBatchingBehavior.cs
- SqlFlattener.cs
- XmlImplementation.cs
- BigInt.cs
- Pen.cs
- EditorPartChrome.cs
- SoapCodeExporter.cs
- SQLMembershipProvider.cs
- FilterQueryOptionExpression.cs
- PropertyChange.cs
- OptimizerPatterns.cs
- X509RecipientCertificateClientElement.cs
- PartialList.cs
- OutputCacheSettingsSection.cs
- ConfigXmlText.cs
- AnchorEditor.cs
- SecurityHeaderElementInferenceEngine.cs
- HandlerWithFactory.cs
- HttpResponseInternalWrapper.cs
- ReplyChannelAcceptor.cs
- ObjectManager.cs
- AtomContentProperty.cs
- Keywords.cs
- Delegate.cs
- RelativeSource.cs
- MailAddressCollection.cs