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
- EmptyStringExpandableObjectConverter.cs
- CodeDomLocalizationProvider.cs
- CollectionViewProxy.cs
- Metafile.cs
- StringValueSerializer.cs
- DateTimeFormatInfoScanner.cs
- TextOnlyOutput.cs
- X509LogoTypeExtension.cs
- CroppedBitmap.cs
- Localizer.cs
- CollectionTypeElement.cs
- AttachmentService.cs
- HttpListener.cs
- TrackBar.cs
- WebResourceUtil.cs
- SafeNativeMethodsMilCoreApi.cs
- CapabilitiesRule.cs
- ConfigXmlComment.cs
- SelectionItemProviderWrapper.cs
- BuildDependencySet.cs
- NonBatchDirectoryCompiler.cs
- Span.cs
- CodePageUtils.cs
- HttpProfileBase.cs
- M3DUtil.cs
- backend.cs
- SafeEventLogWriteHandle.cs
- PeerNameRecord.cs
- CounterCreationDataCollection.cs
- ListSortDescriptionCollection.cs
- CodeTypeMemberCollection.cs
- Proxy.cs
- COM2PropertyBuilderUITypeEditor.cs
- PerfService.cs
- dtdvalidator.cs
- DialogWindow.cs
- MatchingStyle.cs
- ObsoleteAttribute.cs
- GetReadStreamResult.cs
- SymmetricAlgorithm.cs
- SamlAuthenticationStatement.cs
- ExecutedRoutedEventArgs.cs
- ScrollBarRenderer.cs
- PolyBezierSegment.cs
- AbstractSvcMapFileLoader.cs
- Misc.cs
- DecimalConstantAttribute.cs
- FreezableCollection.cs
- Model3DCollection.cs
- TransportManager.cs
- Vector3DIndependentAnimationStorage.cs
- AnimationTimeline.cs
- RowTypePropertyElement.cs
- CompositionTarget.cs
- ActivityCodeDomSerializer.cs
- DateTimeOffsetStorage.cs
- ExtendedPropertiesHandler.cs
- ZoomPercentageConverter.cs
- PingOptions.cs
- ListenUriMode.cs
- BitmapCache.cs
- ModulesEntry.cs
- Tuple.cs
- SQLBytesStorage.cs
- WrappedIUnknown.cs
- ParameterToken.cs
- PaintValueEventArgs.cs
- _IPv6Address.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MessageBox.cs
- CodeTypeConstructor.cs
- ApplicationSecurityManager.cs
- TreeNode.cs
- StateInitializationDesigner.cs
- XmlSchemaComplexType.cs
- AnonymousIdentificationModule.cs
- NamedElement.cs
- StaticContext.cs
- XmlSchemas.cs
- TextEditorCopyPaste.cs
- XhtmlConformanceSection.cs
- Code.cs
- WebPartConnectionsCloseVerb.cs
- AtomMaterializerLog.cs
- InputProviderSite.cs
- HostedNamedPipeTransportManager.cs
- PolicyLevel.cs
- DispatcherEventArgs.cs
- HttpDictionary.cs
- XMLSyntaxException.cs
- ToolStripDropDownButton.cs
- webbrowsersite.cs
- SQLBytes.cs
- EventLogPropertySelector.cs
- xamlnodes.cs
- Misc.cs
- ColumnMapProcessor.cs
- RIPEMD160.cs
- KernelTypeValidation.cs
- PreservationFileWriter.cs