Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / GetLastErrorDetailsRequest.cs / 1 / GetLastErrorDetailsRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.Collections.Generic; using System.IO; using System.Text; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; using Microsoft.InfoCards.Diagnostics; // // Opens a store file and checks the first element to make sure that this is // a valid infocard store file. // class GetLastErrorDetailsRequest :UIAgentRequest { public GetLastErrorDetailsRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } // // Summary // Read the marshalled arguments // protected override void OnMarshalInArgs() { } // // Summary // Read the first element of the file // protected override void OnProcess() { } // // Summary // Write the boolean value to be returned // protected override void OnMarshalOutArgs() { BinaryWriter writer = new BinaryWriter( OutArgs, Encoding.Unicode ); writer.Write( ParentRequest is GetBrowserTokenRequest ); int error = (int)EventCode.E_ICARD_COMMUNICATION; Exception e = ParentRequest.ProcessingException; if( null != e ) { // // Try to find the innermost infocard exception // Exception lastInfoCardException = null; while( e is InfoCardBaseException ) { lastInfoCardException = e; if( null != e.InnerException ) { e = e.InnerException; } else { break; } } if( null != lastInfoCardException ) { error = ( lastInfoCardException as InfoCardBaseException ).NativeHResult; } } writer.Write( error ); } } } // 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
- UshortList2.cs
- Form.cs
- GetPageCompletedEventArgs.cs
- AnonymousIdentificationModule.cs
- PlanCompiler.cs
- InputQueue.cs
- ClientConfigPaths.cs
- XPathNavigator.cs
- UIElement3D.cs
- WebPartTransformerAttribute.cs
- ListViewInsertionMark.cs
- TaskForm.cs
- LinqDataSourceStatusEventArgs.cs
- SingleResultAttribute.cs
- CompositeClientFormatter.cs
- EntityUtil.cs
- TableLayoutPanelResizeGlyph.cs
- XmlSchemaSequence.cs
- DataGridTablesFactory.cs
- Rights.cs
- TreeNodeMouseHoverEvent.cs
- UnsafeNativeMethods.cs
- RawMouseInputReport.cs
- RecordManager.cs
- SrgsElementList.cs
- VarInfo.cs
- SelectorItemAutomationPeer.cs
- DataGridLinkButton.cs
- CustomTrackingRecord.cs
- IProvider.cs
- TabletDeviceInfo.cs
- FontClient.cs
- DataRowChangeEvent.cs
- ButtonField.cs
- IconBitmapDecoder.cs
- BitmapEffectDrawing.cs
- NavigatorInput.cs
- LineGeometry.cs
- DuplicateContext.cs
- Trace.cs
- ClientSponsor.cs
- AvTrace.cs
- BinaryObjectReader.cs
- StreamAsIStream.cs
- HttpWebRequest.cs
- DataSourceDescriptorCollection.cs
- ExtensionSimplifierMarkupObject.cs
- TypedDataSourceCodeGenerator.cs
- StringOutput.cs
- Thickness.cs
- BezierSegment.cs
- TranslateTransform3D.cs
- Dump.cs
- SubMenuStyleCollectionEditor.cs
- DataGridTable.cs
- NameObjectCollectionBase.cs
- DataKey.cs
- DES.cs
- AppSecurityManager.cs
- TrackingMemoryStreamFactory.cs
- ContextMenuAutomationPeer.cs
- StringCollectionEditor.cs
- BasePropertyDescriptor.cs
- DataRow.cs
- ShutDownListener.cs
- CodeDirectiveCollection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- EntityCommandDefinition.cs
- XmlSchemaSimpleType.cs
- MessageQueueInstaller.cs
- PageContentAsyncResult.cs
- PrintPreviewControl.cs
- CheckBox.cs
- SqlOuterApplyReducer.cs
- XmlArrayAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- XamlBrushSerializer.cs
- WebRequestModuleElement.cs
- httpserverutility.cs
- DataGridViewButtonColumn.cs
- DbProviderFactoriesConfigurationHandler.cs
- LocationSectionRecord.cs
- SoapObjectInfo.cs
- InputProcessorProfiles.cs
- IfAction.cs
- KeyGesture.cs
- XmlSerializerImportOptions.cs
- BmpBitmapDecoder.cs
- SelectionItemProviderWrapper.cs
- TraceInternal.cs
- OdbcErrorCollection.cs
- wgx_commands.cs
- MessagingDescriptionAttribute.cs
- CaretElement.cs
- SiteMapProvider.cs
- DetailsViewInsertedEventArgs.cs
- TriggerAction.cs
- WindowsListViewSubItem.cs
- ToolboxDataAttribute.cs
- FloatSumAggregationOperator.cs