Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / EndGetFileNameFromUserRequest.cs / 1 / EndGetFileNameFromUserRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.IO; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary // Processes end of asynchronous get file name from user request. // internal class EndGetFileNameFromUserRequest : UIAgentAsyncEndRequest { // // Summary // Constructs the request. // // Arguments // rpcHandle - Specifies the RPC context handle. // inArgs - Specifies the stream to hold the input arguments. // outArgs - Specifies the stream to hold the output arguments. // parent - Specifies the parent UI request. // public EndGetFileNameFromUserRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } // // Summary // Serializes output arguments to stream. // // Arguments // writer - Specifies binary writer. // protected override void OnMarshalAsyncOutArgs( BinaryWriter writer ) { // // Get result. // GetFileNameResult result = (GetFileNameResult)Result; IDT.Assert( null != result, "The get file result cannot be null." ); // // Write file name and contents to stream. // Utility.SerializeString( writer, result.FileName ); Utility.SerializeBytes( writer, result.FileContent ); writer.Flush(); } } } // 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
- DataGridViewButtonColumn.cs
- UnicodeEncoding.cs
- VirtualPathExtension.cs
- CutCopyPasteHelper.cs
- HtmlElement.cs
- StatusBarPanel.cs
- FilePrompt.cs
- Int64.cs
- DetailsViewInsertEventArgs.cs
- ModelToObjectValueConverter.cs
- MatrixTransform3D.cs
- ConditionedDesigner.cs
- PenThreadWorker.cs
- XslCompiledTransform.cs
- ModuleElement.cs
- RIPEMD160.cs
- ContextMenuService.cs
- TextRangeEditTables.cs
- BufferBuilder.cs
- GradientBrush.cs
- StickyNoteContentControl.cs
- MessageQuerySet.cs
- BamlVersionHeader.cs
- FreezableOperations.cs
- NativeMethodsOther.cs
- StatusBarDesigner.cs
- TypedReference.cs
- SqlTriggerContext.cs
- StrokeSerializer.cs
- XLinq.cs
- UnsafeNativeMethods.cs
- RegexInterpreter.cs
- CancellationState.cs
- GPPOINT.cs
- UInt16Storage.cs
- NetworkStream.cs
- ReadOnlyDictionary.cs
- DataKey.cs
- InvalidComObjectException.cs
- PageCodeDomTreeGenerator.cs
- DoWhile.cs
- SamlAuthenticationClaimResource.cs
- DesignerCategoryAttribute.cs
- SHA1CryptoServiceProvider.cs
- XamlFrame.cs
- XmlBinaryReader.cs
- ApplicationInfo.cs
- NumericUpDownAcceleration.cs
- LineMetrics.cs
- CharacterShapingProperties.cs
- ProviderMetadataCachedInformation.cs
- SecurityKeyUsage.cs
- ExceptionHandlerDesigner.cs
- _Events.cs
- LinqDataSourceDeleteEventArgs.cs
- UndirectedGraph.cs
- DrawingVisualDrawingContext.cs
- SmiEventSink_DeferedProcessing.cs
- DeadCharTextComposition.cs
- TextEditorContextMenu.cs
- DebugHandleTracker.cs
- FontWeights.cs
- SQLByte.cs
- Int32CAMarshaler.cs
- SafeBuffer.cs
- MemberHolder.cs
- FormsAuthenticationUser.cs
- DataColumnMapping.cs
- XmlChildNodes.cs
- PersonalizationState.cs
- EditorPartChrome.cs
- PropertyMapper.cs
- CommandTreeTypeHelper.cs
- InheritanceRules.cs
- AxHost.cs
- ScriptManagerProxy.cs
- XsltOutput.cs
- HandlerFactoryWrapper.cs
- ToggleButton.cs
- TextShapeableCharacters.cs
- TableItemPatternIdentifiers.cs
- ConstructorNeedsTagAttribute.cs
- InstancePersistenceException.cs
- FileEnumerator.cs
- SettingsBindableAttribute.cs
- PcmConverter.cs
- HasCopySemanticsAttribute.cs
- EntityKeyElement.cs
- XmlSchemaAttribute.cs
- XmlSchemaInfo.cs
- MenuItemCollectionEditorDialog.cs
- SynchronizationLockException.cs
- DataGridViewCellStyleConverter.cs
- ClientSettingsProvider.cs
- DynamicValueConverter.cs
- DataBindingExpressionBuilder.cs
- RemoteWebConfigurationHostStream.cs
- CodeDOMProvider.cs
- HttpWebRequestElement.cs
- ErrorFormatter.cs