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
- ArgumentValidation.cs
- LicenseProviderAttribute.cs
- AuthenticodeSignatureInformation.cs
- TextPatternIdentifiers.cs
- CrossContextChannel.cs
- KnowledgeBase.cs
- SchemaMapping.cs
- SvcFileManager.cs
- ContainerFilterService.cs
- SlotInfo.cs
- VisualStyleInformation.cs
- ZoneButton.cs
- JoinCqlBlock.cs
- DataBindingExpressionBuilder.cs
- Listbox.cs
- ConnectionPointCookie.cs
- KnownTypesProvider.cs
- HtmlUtf8RawTextWriter.cs
- xmlsaver.cs
- BitmapCache.cs
- FormView.cs
- ValidateNames.cs
- IDispatchConstantAttribute.cs
- PasswordRecovery.cs
- TransactionManager.cs
- RegexCompiler.cs
- Typeface.cs
- WSDualHttpBinding.cs
- DataColumnSelectionConverter.cs
- ListViewHitTestInfo.cs
- CodeIterationStatement.cs
- ConfigurationStrings.cs
- DbProviderFactories.cs
- CodeDirectoryCompiler.cs
- HwndHostAutomationPeer.cs
- Vector.cs
- ForeignConstraint.cs
- TraceXPathNavigator.cs
- WindowsIPAddress.cs
- ArrayWithOffset.cs
- ArraySet.cs
- DayRenderEvent.cs
- CacheMemory.cs
- SHA1Managed.cs
- EntitySetRetriever.cs
- InstancePersistence.cs
- QilFactory.cs
- CounterCreationDataCollection.cs
- HtmlWindowCollection.cs
- SplineKeyFrames.cs
- XmlnsDefinitionAttribute.cs
- MultipartContentParser.cs
- HttpResponse.cs
- SrgsElementFactoryCompiler.cs
- RequiredAttributeAttribute.cs
- RectConverter.cs
- OleDbTransaction.cs
- VerificationAttribute.cs
- ContentElement.cs
- CultureInfoConverter.cs
- ModelUIElement3D.cs
- TypedTableBaseExtensions.cs
- RelationshipConstraintValidator.cs
- ScriptManagerProxy.cs
- XmlSchemaComplexContentExtension.cs
- Input.cs
- TextBoxBase.cs
- RangeValueProviderWrapper.cs
- PropertiesTab.cs
- FixedTextContainer.cs
- ImportContext.cs
- ParameterCollectionEditorForm.cs
- SRGSCompiler.cs
- NamedPipeTransportSecurityElement.cs
- BitmapFrame.cs
- handlecollector.cs
- ListenerElementsCollection.cs
- GridViewHeaderRowPresenter.cs
- MimeReflector.cs
- ResourceWriter.cs
- BufferAllocator.cs
- SoapObjectInfo.cs
- ColorContextHelper.cs
- WeakKeyDictionary.cs
- ConditionValidator.cs
- ObjectDataProvider.cs
- WindowsSpinner.cs
- TextProperties.cs
- ExtendedPropertyInfo.cs
- InteropAutomationProvider.cs
- State.cs
- StringAnimationBase.cs
- PrinterResolution.cs
- Helpers.cs
- Send.cs
- TransformGroup.cs
- NameScopePropertyAttribute.cs
- updatecommandorderer.cs
- EventProviderWriter.cs
- AddInServer.cs