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
- MailAddressCollection.cs
- AdapterDictionary.cs
- TableLayoutCellPaintEventArgs.cs
- StaticDataManager.cs
- ADMembershipUser.cs
- Relationship.cs
- ApplicationFileParser.cs
- WindowsListView.cs
- DataGridCaption.cs
- RegistryHandle.cs
- DataGridCaption.cs
- Query.cs
- ConfigXmlElement.cs
- FixedSOMTextRun.cs
- DbFunctionCommandTree.cs
- XmlValidatingReader.cs
- Point3DCollectionValueSerializer.cs
- PictureBox.cs
- QilBinary.cs
- xdrvalidator.cs
- RequestStatusBarUpdateEventArgs.cs
- GridItem.cs
- EntityClientCacheKey.cs
- HttpWebResponse.cs
- StylusCaptureWithinProperty.cs
- ToolStripContentPanel.cs
- SimpleHandlerBuildProvider.cs
- SchemaExporter.cs
- ActivityExecutor.cs
- InputReport.cs
- HttpRawResponse.cs
- View.cs
- SynchronizationLockException.cs
- SqlDataSourceSelectingEventArgs.cs
- Point3D.cs
- ObjectCacheHost.cs
- OdbcPermission.cs
- DSASignatureFormatter.cs
- WebDisplayNameAttribute.cs
- UDPClient.cs
- NullReferenceException.cs
- ProfessionalColorTable.cs
- ConnectivityStatus.cs
- HijriCalendar.cs
- DefaultValueConverter.cs
- UrlMappingsModule.cs
- XPathDescendantIterator.cs
- AggregateNode.cs
- RuntimeConfigLKG.cs
- AggregateNode.cs
- MultipartIdentifier.cs
- DataGridViewComboBoxEditingControl.cs
- ImageClickEventArgs.cs
- WebEncodingValidatorAttribute.cs
- ButtonFlatAdapter.cs
- MimeFormReflector.cs
- SqlAggregateChecker.cs
- wgx_commands.cs
- ObservableCollection.cs
- PerspectiveCamera.cs
- ActivityCodeDomSerializationManager.cs
- RegexCaptureCollection.cs
- AccessDataSource.cs
- FilterQuery.cs
- WindowsRichEditRange.cs
- ListViewHitTestInfo.cs
- BindingCompleteEventArgs.cs
- SHA384CryptoServiceProvider.cs
- TraceInternal.cs
- Point4D.cs
- AuthenticationService.cs
- _TransmitFileOverlappedAsyncResult.cs
- ToolStripLocationCancelEventArgs.cs
- ScriptControlManager.cs
- Thumb.cs
- PlatformNotSupportedException.cs
- MasterPageCodeDomTreeGenerator.cs
- WebPartActionVerb.cs
- BitStream.cs
- XPathExpr.cs
- HealthMonitoringSectionHelper.cs
- FormParameter.cs
- Int32.cs
- ColorBuilder.cs
- TripleDES.cs
- KnownBoxes.cs
- CompilerResults.cs
- OleAutBinder.cs
- IfAction.cs
- TCEAdapterGenerator.cs
- FunctionImportMapping.cs
- AssertValidation.cs
- XmlSchemaExternal.cs
- HtmlTable.cs
- PtsContext.cs
- RangeValueProviderWrapper.cs
- EdmToObjectNamespaceMap.cs
- DataAccessException.cs
- CopyOnWriteList.cs
- OleDbTransaction.cs