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
- PageParserFilter.cs
- ImagingCache.cs
- SqlAliasesReferenced.cs
- EntityViewGenerationAttribute.cs
- StaticFileHandler.cs
- DataControlPagerLinkButton.cs
- SerTrace.cs
- SqlConnectionStringBuilder.cs
- StorageFunctionMapping.cs
- SystemNetworkInterface.cs
- TableAdapterManagerGenerator.cs
- SecurityDocument.cs
- DynamicValueConverter.cs
- _SpnDictionary.cs
- CodeSnippetCompileUnit.cs
- XmlReader.cs
- LabelAutomationPeer.cs
- PeerObject.cs
- TopClause.cs
- SqlDeflator.cs
- VarInfo.cs
- SoapServerProtocol.cs
- PerspectiveCamera.cs
- FlowDocumentScrollViewer.cs
- SqlResolver.cs
- IndexerNameAttribute.cs
- SerializationObjectManager.cs
- AuthenticationService.cs
- ContainerParagraph.cs
- SecurityTokenValidationException.cs
- BigInt.cs
- ReferencedCollectionType.cs
- UserMapPath.cs
- PropertyRecord.cs
- SQLDateTimeStorage.cs
- FullTrustAssembly.cs
- SmtpLoginAuthenticationModule.cs
- SizeChangedEventArgs.cs
- SmtpDateTime.cs
- CustomAttributeSerializer.cs
- XappLauncher.cs
- DependencyPropertyKind.cs
- SQLBinaryStorage.cs
- DeclarativeCatalogPart.cs
- TreeNodeSelectionProcessor.cs
- CancellationTokenSource.cs
- ControlPaint.cs
- SubMenuStyleCollection.cs
- PrintController.cs
- GeneralTransformGroup.cs
- Variable.cs
- SrgsDocumentParser.cs
- FormViewCommandEventArgs.cs
- TreeViewBindingsEditor.cs
- SerializerDescriptor.cs
- Menu.cs
- SignerInfo.cs
- HtmlElementErrorEventArgs.cs
- HiddenFieldPageStatePersister.cs
- ComNativeDescriptor.cs
- ConsoleCancelEventArgs.cs
- MediaEntryAttribute.cs
- DecimalKeyFrameCollection.cs
- IndicShape.cs
- ImageDrawing.cs
- UInt16.cs
- WebEventTraceProvider.cs
- AuthStoreRoleProvider.cs
- TreeNode.cs
- InstanceCreationEditor.cs
- TableLayoutSettings.cs
- TabletDeviceInfo.cs
- LogWriteRestartAreaState.cs
- Rect.cs
- ToolStripGrip.cs
- SystemDiagnosticsSection.cs
- RenderCapability.cs
- FederatedMessageSecurityOverHttp.cs
- ToolBarButton.cs
- Hash.cs
- Helper.cs
- CommentEmitter.cs
- glyphs.cs
- ExpandCollapsePattern.cs
- webbrowsersite.cs
- BinaryObjectWriter.cs
- Symbol.cs
- PropertyInformationCollection.cs
- AdPostCacheSubstitution.cs
- IdSpace.cs
- EntityCommandCompilationException.cs
- HealthMonitoringSection.cs
- StateRuntime.cs
- wmiprovider.cs
- iisPickupDirectory.cs
- Formatter.cs
- TextShapeableCharacters.cs
- storepermissionattribute.cs
- ColumnMapTranslator.cs
- RegexCaptureCollection.cs