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
- MenuAdapter.cs
- WebSysDisplayNameAttribute.cs
- MarshalByRefObject.cs
- BuildProviderAppliesToAttribute.cs
- TextRunCache.cs
- NamespaceTable.cs
- SecurityDescriptor.cs
- ParameterReplacerVisitor.cs
- LambdaCompiler.Unary.cs
- DrawItemEvent.cs
- EventWaitHandleSecurity.cs
- PersonalizationStateInfoCollection.cs
- SimpleApplicationHost.cs
- HttpsChannelListener.cs
- DataListAutoFormat.cs
- DocumentGrid.cs
- LinqDataSourceInsertEventArgs.cs
- TypeName.cs
- DeflateEmulationStream.cs
- RayMeshGeometry3DHitTestResult.cs
- LinkConverter.cs
- wgx_commands.cs
- AutomationPattern.cs
- ResourceDescriptionAttribute.cs
- TransportChannelListener.cs
- ReadingWritingEntityEventArgs.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- NullToBooleanConverter.cs
- NetworkCredential.cs
- ThreadPool.cs
- XmlElementAttribute.cs
- XamlFigureLengthSerializer.cs
- SafeFreeMibTable.cs
- AdornerLayer.cs
- SymbolMethod.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SubclassTypeValidatorAttribute.cs
- IisHelper.cs
- HtmlInputText.cs
- ButtonField.cs
- CqlIdentifiers.cs
- ItemsChangedEventArgs.cs
- CustomCategoryAttribute.cs
- IconBitmapDecoder.cs
- ConfigurationLocation.cs
- DLinqColumnProvider.cs
- DataControlLinkButton.cs
- SHA256.cs
- PixelFormatConverter.cs
- AssociationTypeEmitter.cs
- SoapExtensionStream.cs
- CollectionViewSource.cs
- Interop.cs
- ControlBuilderAttribute.cs
- DataGridViewButtonCell.cs
- FigureParagraph.cs
- PointConverter.cs
- PackUriHelper.cs
- CheckBoxStandardAdapter.cs
- XamlGridLengthSerializer.cs
- Options.cs
- Events.cs
- ITextView.cs
- MsmqHostedTransportManager.cs
- ClientScriptManager.cs
- PageClientProxyGenerator.cs
- WebPartMinimizeVerb.cs
- IntSecurity.cs
- CollectionConverter.cs
- Renderer.cs
- sqlnorm.cs
- BuildProvider.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- StandardCommands.cs
- XmlAutoDetectWriter.cs
- MediaContext.cs
- MetricEntry.cs
- TTSEvent.cs
- IpcServerChannel.cs
- SharedStatics.cs
- SessionEndedEventArgs.cs
- LoginViewDesigner.cs
- exports.cs
- AnnotationAdorner.cs
- CodeAttributeArgument.cs
- SecurityDescriptor.cs
- OutputCacheEntry.cs
- ParameterDataSourceExpression.cs
- IntegerValidator.cs
- BinaryObjectInfo.cs
- MediaScriptCommandRoutedEventArgs.cs
- TemplateLookupAction.cs
- XmlDocumentType.cs
- DataRelation.cs
- PerformanceCounterPermission.cs
- RoutedUICommand.cs
- TreeNodeEventArgs.cs
- EventRouteFactory.cs
- CharEntityEncoderFallback.cs
- PropertyGridEditorPart.cs