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
- ExpressionEvaluator.cs
- MonthChangedEventArgs.cs
- DataListItemEventArgs.cs
- Hash.cs
- BinaryFormatter.cs
- ControlParameter.cs
- SafeHandles.cs
- MultipleViewPattern.cs
- ScrollPatternIdentifiers.cs
- PixelFormat.cs
- DrawListViewSubItemEventArgs.cs
- XmlSortKey.cs
- CodeLabeledStatement.cs
- AssociationSetMetadata.cs
- DbConnectionPoolCounters.cs
- ImmutableObjectAttribute.cs
- CompositeDispatchFormatter.cs
- UserPreferenceChangedEventArgs.cs
- LogSwitch.cs
- DocumentPageViewAutomationPeer.cs
- SingleTagSectionHandler.cs
- SecurityIdentifierConverter.cs
- XmlSchema.cs
- LayoutUtils.cs
- SchemaType.cs
- Path.cs
- JournalEntry.cs
- ExpressionParser.cs
- UnmanagedMemoryStreamWrapper.cs
- NullableDoubleSumAggregationOperator.cs
- SQLGuid.cs
- ComponentSerializationService.cs
- Journaling.cs
- DeflateEmulationStream.cs
- HuffmanTree.cs
- DispatcherHookEventArgs.cs
- TextRangeBase.cs
- PageThemeParser.cs
- ComAdminWrapper.cs
- PasswordPropertyTextAttribute.cs
- UniformGrid.cs
- _OverlappedAsyncResult.cs
- ExtentCqlBlock.cs
- SnapLine.cs
- ActivitySurrogate.cs
- DynamicDataRoute.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SqlExpander.cs
- EmptyStringExpandableObjectConverter.cs
- BindingMAnagerBase.cs
- XmlCodeExporter.cs
- SmtpLoginAuthenticationModule.cs
- TextTreeUndo.cs
- RangeValuePatternIdentifiers.cs
- DocumentPageView.cs
- Substitution.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlSchemaValidationException.cs
- ProfileServiceManager.cs
- VirtualizingPanel.cs
- odbcmetadatacolumnnames.cs
- CategoriesDocumentFormatter.cs
- ImageMap.cs
- LineGeometry.cs
- ResourceDisplayNameAttribute.cs
- DoubleKeyFrameCollection.cs
- SqlConnection.cs
- SerialErrors.cs
- Material.cs
- HttpHeaderCollection.cs
- ProtocolException.cs
- JavaScriptSerializer.cs
- Color.cs
- LineSegment.cs
- EventProviderWriter.cs
- NavigationService.cs
- XmlSchema.cs
- ImageFormat.cs
- TraceSection.cs
- ClientTarget.cs
- LineServices.cs
- SoapCodeExporter.cs
- ConfigurationCollectionAttribute.cs
- CheckBoxBaseAdapter.cs
- Attributes.cs
- ReadOnlyDataSourceView.cs
- DefaultConfirmation.cs
- NumberAction.cs
- SelectionRangeConverter.cs
- DataGridViewRowsRemovedEventArgs.cs
- HttpHandler.cs
- ListParagraph.cs
- SoapUnknownHeader.cs
- XmlLinkedNode.cs
- FormViewModeEventArgs.cs
- DeferredSelectedIndexReference.cs
- HttpWrapper.cs
- CodeStatementCollection.cs
- DateTimeConverter2.cs
- UrlMapping.cs