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
- tooltip.cs
- WebFormDesignerActionService.cs
- UserControlParser.cs
- Misc.cs
- Calendar.cs
- externdll.cs
- XmlSchemaExternal.cs
- DeviceFilterDictionary.cs
- AstTree.cs
- SpeechRecognizer.cs
- RevocationPoint.cs
- IsolatedStoragePermission.cs
- StrokeDescriptor.cs
- Queue.cs
- ReverseComparer.cs
- TitleStyle.cs
- DeclaredTypeElement.cs
- DSASignatureFormatter.cs
- RegistryDataKey.cs
- AttributeData.cs
- PageRequestManager.cs
- PathSegmentCollection.cs
- CanonicalFontFamilyReference.cs
- Stack.cs
- BitmapSource.cs
- SecureStringHasher.cs
- Action.cs
- ToolTipAutomationPeer.cs
- ElementProxy.cs
- CatalogPart.cs
- RoutingSection.cs
- Transform3D.cs
- WebSysDescriptionAttribute.cs
- XAMLParseException.cs
- ImpersonationContext.cs
- DataSysAttribute.cs
- HttpStreamXmlDictionaryReader.cs
- ScriptRegistrationManager.cs
- HttpStaticObjectsCollectionBase.cs
- LassoHelper.cs
- Encoding.cs
- ActivityStatusChangeEventArgs.cs
- Vars.cs
- DesignerHelpers.cs
- ComplusTypeValidator.cs
- StrongNameSignatureInformation.cs
- QuestionEventArgs.cs
- CmsInterop.cs
- UiaCoreApi.cs
- Grant.cs
- XsltArgumentList.cs
- HttpTransportManager.cs
- EnumerableRowCollection.cs
- LayoutTableCell.cs
- BoolExpr.cs
- XamlSerializer.cs
- ConfigurationSchemaErrors.cs
- XmlHierarchyData.cs
- TypeInitializationException.cs
- UnsafeCollabNativeMethods.cs
- ConnectionConsumerAttribute.cs
- UnsafePeerToPeerMethods.cs
- ComponentManagerBroker.cs
- StylusDownEventArgs.cs
- Vector3dCollection.cs
- TableSectionStyle.cs
- LifetimeServices.cs
- TableLayout.cs
- XmlSchemaComplexContentRestriction.cs
- TemplateNameScope.cs
- DataExpression.cs
- DiscoveryRequestHandler.cs
- ListBoxItemWrapperAutomationPeer.cs
- Axis.cs
- MimeMultiPart.cs
- PerspectiveCamera.cs
- Size3D.cs
- AxHostDesigner.cs
- AnimationClockResource.cs
- CommonObjectSecurity.cs
- RoleManagerEventArgs.cs
- wgx_render.cs
- MatrixTransform3D.cs
- UserValidatedEventArgs.cs
- DispatchChannelSink.cs
- WindowsListViewSubItem.cs
- CallSiteHelpers.cs
- PresentationTraceSources.cs
- CredentialCache.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- KeyProperty.cs
- FormViewUpdateEventArgs.cs
- NullExtension.cs
- NavigatorInvalidBodyAccessException.cs
- PathParser.cs
- Pen.cs
- FontNameConverter.cs
- EntityDataSourceDataSelectionPanel.cs
- AssociationSetEnd.cs
- UriSection.cs