Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / QueryStoreStatusRequest.cs / 1 / QueryStoreStatusRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary // Processes a request to check if the infocard store can be accessed sucessfully. // // // Specify valid parent requests. // class QueryStoreStatusRequest : UIAgentRequest { bool m_storeStatus; public QueryStoreStatusRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { base.OnInitializeAsSystem(); } // // Summary // Marshals input arguments for the request. The arguments are read from a stream in binary. // protected override void OnMarshalInArgs() { } // // Summary // Processes the request. // // protected override void OnProcess() { StoreConnection connection = StoreConnection.GetConnection(); try { m_storeStatus = connection.IsDataSourceCleared( connection.LocalDataSource ); if( m_storeStatus ) { connection.ResetDataSourceClearedFlag( connection.LocalDataSource ); } } finally { connection.Close(); } } // // Summary // Marshals output arguments for the request. The arguments are written to a stream in binary. // protected override void OnMarshalOutArgs() { Stream stream = OutArgs; BinaryWriter writer = new BinaryWriter( stream ); writer.Write( m_storeStatus ); } } } // 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
- pingexception.cs
- HtmlAnchor.cs
- Base64Stream.cs
- DBConnectionString.cs
- BamlLocalizer.cs
- _ShellExpression.cs
- WorkflowDefinitionDispenser.cs
- ToolTip.cs
- WindowsTreeView.cs
- AppDomainFactory.cs
- JournalEntryListConverter.cs
- XPathDescendantIterator.cs
- MessageBox.cs
- OleDbErrorCollection.cs
- MessageQueueCriteria.cs
- NativeMethods.cs
- LayoutSettings.cs
- XappLauncher.cs
- ISAPIWorkerRequest.cs
- XmlIncludeAttribute.cs
- IMembershipProvider.cs
- ReaderOutput.cs
- PenLineCapValidation.cs
- FileChangesMonitor.cs
- ValueCollectionParameterReader.cs
- DatePickerAutomationPeer.cs
- SyndicationSerializer.cs
- FontStyle.cs
- GridViewRowPresenterBase.cs
- EdmTypeAttribute.cs
- CompareInfo.cs
- FlowLayoutSettings.cs
- Form.cs
- SqlCommandBuilder.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ProtocolsConfigurationHandler.cs
- MachineKeySection.cs
- ApplyImportsAction.cs
- ConnectionProviderAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- CodeDefaultValueExpression.cs
- TextRunCache.cs
- CompatibleComparer.cs
- PasswordRecoveryAutoFormat.cs
- CodeConditionStatement.cs
- ImageMetadata.cs
- ObjectDataSourceDisposingEventArgs.cs
- Label.cs
- TypeDelegator.cs
- TreeViewImageIndexConverter.cs
- Normalization.cs
- AppSettingsSection.cs
- IIS7WorkerRequest.cs
- FacetDescriptionElement.cs
- JsonUriDataContract.cs
- AutomationElement.cs
- FixedBufferAttribute.cs
- ListViewUpdateEventArgs.cs
- HandleCollector.cs
- NoClickablePointException.cs
- SessionPageStateSection.cs
- RectangleConverter.cs
- Deflater.cs
- DelimitedListTraceListener.cs
- PropertyDescriptors.cs
- ScrollableControl.cs
- SyntaxCheck.cs
- HwndSource.cs
- CompareValidator.cs
- StringFreezingAttribute.cs
- SplitterPanel.cs
- _NativeSSPI.cs
- FloaterBaseParaClient.cs
- CodeLabeledStatement.cs
- ParameterCollectionEditorForm.cs
- LoginViewDesigner.cs
- GeometryHitTestResult.cs
- WebResourceUtil.cs
- XmlHelper.cs
- CorrelationInitializer.cs
- CommandField.cs
- RightsManagementInformation.cs
- ContainerControlDesigner.cs
- Calendar.cs
- QuaternionKeyFrameCollection.cs
- CharacterString.cs
- ControlBuilderAttribute.cs
- BrushMappingModeValidation.cs
- QueryReaderSettings.cs
- OrderedDictionary.cs
- StorageFunctionMapping.cs
- FormatException.cs
- IBuiltInEvidence.cs
- XmlValueConverter.cs
- TransformGroup.cs
- ProgressBar.cs
- CaseInsensitiveHashCodeProvider.cs
- XsltQilFactory.cs
- XamlTemplateSerializer.cs
- StrokeDescriptor.cs