Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / GetUserPreferenceRequest.cs / 1 / GetUserPreferenceRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections; using System.IO; using Microsoft.InfoCards.Diagnostics; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary: // This class handles the request from the UI Agent to retrieve the user preferences // from the store. // // Remarks: // Null will be returned if no user preference information is found in the store. // class GetUserPreferenceRequest : UIAgentRequest { UserPreference m_userPreference; // // Summary: // Constructs a new GetUserPreferenceRequest instance. // // Parameters: // rpcHandle - Handle to the RPC call from the UI Agent // inArgs - Stream for the incoming information. Null in this case. // outArgs - Stream used to collect the outbound data. // connection - Store connection available to this request. // public GetUserPreferenceRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { m_userPreference = null; } // // Summary // Event for marshalling the request information // // Remarks // Not used // protected override void OnMarshalInArgs() { } // // Summary // Event for processing the request // protected override void OnProcess() { StoreConnection connection = StoreConnection.GetConnection(); try { m_userPreference = UserPreference.Get( connection ); } finally { connection.Close(); } } // // Summary // Event for marshalling the response information // // Remarks // Write nothing if the UserPreference object was not found // in the store. // protected override void OnMarshalOutArgs() { if( null != m_userPreference ) { m_userPreference.Serialize( OutArgs ); } } } } // 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
- NameValueSectionHandler.cs
- BitmapEffectDrawingContextWalker.cs
- PolyBezierSegment.cs
- WebSysDisplayNameAttribute.cs
- TransformCryptoHandle.cs
- CheckBoxFlatAdapter.cs
- ListControl.cs
- XmlCodeExporter.cs
- XhtmlBasicControlAdapter.cs
- ParameterBuilder.cs
- ActivationArguments.cs
- SizeConverter.cs
- DataServiceQueryException.cs
- SafeFindHandle.cs
- LabelInfo.cs
- Emitter.cs
- InitializerFacet.cs
- ValidationError.cs
- DesignerInterfaces.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- Pair.cs
- WorkerRequest.cs
- HotCommands.cs
- BindingWorker.cs
- SvcMapFileLoader.cs
- XmlSchemaImporter.cs
- EntityContainerEmitter.cs
- ScrollItemPattern.cs
- login.cs
- ResourceSet.cs
- NameSpaceExtractor.cs
- PrintDocument.cs
- AlgoModule.cs
- BCLDebug.cs
- XsdCachingReader.cs
- HttpValueCollection.cs
- ByteConverter.cs
- StatusBar.cs
- DataRowCollection.cs
- TextAutomationPeer.cs
- CompileLiteralTextParser.cs
- DeobfuscatingStream.cs
- PeerSecurityManager.cs
- DataStreamFromComStream.cs
- ListControlDesigner.cs
- StringFunctions.cs
- StubHelpers.cs
- CacheMode.cs
- EntryWrittenEventArgs.cs
- BookmarkScopeInfo.cs
- StatusBarItem.cs
- RepeatBehaviorConverter.cs
- FontDialog.cs
- ToolboxService.cs
- DynamicPropertyReader.cs
- AnnotationHelper.cs
- Rotation3D.cs
- Listbox.cs
- lengthconverter.cs
- DataSetViewSchema.cs
- Logging.cs
- DbProviderFactory.cs
- TemplateAction.cs
- ClipboardData.cs
- SafeFileMappingHandle.cs
- WebSysDisplayNameAttribute.cs
- XmlDeclaration.cs
- DataSourceHelper.cs
- WebHttpBinding.cs
- NamespaceImport.cs
- Helpers.cs
- RuleInfoComparer.cs
- ExitEventArgs.cs
- XmlWriterDelegator.cs
- QueryExecutionOption.cs
- WebPartConnectVerb.cs
- BrowserCapabilitiesFactoryBase.cs
- _BaseOverlappedAsyncResult.cs
- StructuredTypeInfo.cs
- MetadataCollection.cs
- _BufferOffsetSize.cs
- SubMenuStyleCollection.cs
- DataRowView.cs
- InheritanceUI.cs
- ServiceMoniker.cs
- EventRouteFactory.cs
- DefaultParameterValueAttribute.cs
- LoadGrammarCompletedEventArgs.cs
- SiblingIterators.cs
- BaseUriHelper.cs
- XmlNamespaceManager.cs
- SectionInput.cs
- LazyTextWriterCreator.cs
- EncoderNLS.cs
- StrongName.cs
- ObjectStateFormatter.cs
- MTConfigUtil.cs
- Point3DIndependentAnimationStorage.cs
- XmlNamespaceDeclarationsAttribute.cs
- TransformerConfigurationWizardBase.cs