Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / GetImportFileNameRequest.cs / 1 / GetImportFileNameRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using System.IO; using Microsoft.InfoCards.Diagnostics; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // This class handles a UI request for name of the file to import cards from // class GetImportFileNameRequest :UIAgentRequest { string m_filename = String.Empty; // // Summary // Create a new request to return the name of the file to use for import // public GetImportFileNameRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } protected override void OnMarshalInArgs() { } // // Summary // Retrive the file name // protected override void OnProcess() { if( ParentRequest is ImportRequest ) { ImportRequest imr = ParentRequest as ImportRequest; m_filename = imr.ImportedFile; IDT.Assert( !String.IsNullOrEmpty( m_filename ), "No file name provided for import" ); } else { IDT.Assert( false, "The parent of this request MUST be ImportRequest" ); } } // // Summary // Serialize the output in the following order // m_filename // // protected override void OnMarshalOutArgs() { BinaryWriter writer = new BinaryWriter( OutArgs, System.Text.Encoding.Unicode ); IDT.TraceDebug( "Serialize the import file name" ); Utility.SerializeString( writer, m_filename ); } } } // 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
- QilIterator.cs
- CellLabel.cs
- PolyBezierSegmentFigureLogic.cs
- ArrangedElementCollection.cs
- OSFeature.cs
- SafeEventLogReadHandle.cs
- CapabilitiesPattern.cs
- SafeRightsManagementHandle.cs
- Exceptions.cs
- BCryptNative.cs
- MSAAWinEventWrap.cs
- DefaultBinder.cs
- BuildManager.cs
- InstanceHandleConflictException.cs
- ProfileSection.cs
- NoResizeHandleGlyph.cs
- Keywords.cs
- ActivityDesignerLayoutSerializers.cs
- RichTextBoxConstants.cs
- ObjectStateFormatter.cs
- GridViewEditEventArgs.cs
- BitVec.cs
- BaseDataList.cs
- DirectoryInfo.cs
- TaskFileService.cs
- ProviderCollection.cs
- returneventsaver.cs
- _LoggingObject.cs
- HtmlControlPersistable.cs
- WindowsNonControl.cs
- ClientBuildManagerCallback.cs
- ServiceReflector.cs
- RegexNode.cs
- DateTimeConverter2.cs
- XmlSignatureManifest.cs
- DelimitedListTraceListener.cs
- CompoundFileDeflateTransform.cs
- Font.cs
- StorageBasedPackageProperties.cs
- InspectionWorker.cs
- Win32KeyboardDevice.cs
- HttpListenerRequestUriBuilder.cs
- GenericTypeParameterBuilder.cs
- WeakReferenceEnumerator.cs
- DataGridViewCellStyleBuilderDialog.cs
- ToolTipAutomationPeer.cs
- ISFClipboardData.cs
- ValidatorCompatibilityHelper.cs
- SystemIPInterfaceProperties.cs
- XmlHierarchicalDataSourceView.cs
- AgileSafeNativeMemoryHandle.cs
- Descriptor.cs
- XPathMultyIterator.cs
- JapaneseCalendar.cs
- ProviderUtil.cs
- IdentityReference.cs
- EventLogInternal.cs
- cookie.cs
- XmlDataSourceView.cs
- NonPrimarySelectionGlyph.cs
- DecimalConstantAttribute.cs
- SplitterEvent.cs
- SelectionBorderGlyph.cs
- ConversionContext.cs
- FieldNameLookup.cs
- RenderCapability.cs
- DbFunctionCommandTree.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- IntegerFacetDescriptionElement.cs
- CategoryAttribute.cs
- PackageProperties.cs
- ObjectDataSourceMethodEventArgs.cs
- DbMetaDataFactory.cs
- IdentityHolder.cs
- DataGridViewTextBoxColumn.cs
- ProjectionPruner.cs
- TableRowGroupCollection.cs
- bidPrivateBase.cs
- PartialCachingAttribute.cs
- MultiBinding.cs
- ConfigXmlText.cs
- ToolStripDropTargetManager.cs
- SrgsDocument.cs
- UniformGrid.cs
- MenuEventArgs.cs
- DbConnectionPoolGroup.cs
- ConfigurationPropertyCollection.cs
- SQLInt16Storage.cs
- TypedReference.cs
- SpellerHighlightLayer.cs
- invalidudtexception.cs
- MouseWheelEventArgs.cs
- StringBuilder.cs
- DataGridViewLinkCell.cs
- MoveSizeWinEventHandler.cs
- TranslateTransform.cs
- TypeName.cs
- TableParagraph.cs
- MobileSysDescriptionAttribute.cs
- GC.cs