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
- EditBehavior.cs
- ArrangedElementCollection.cs
- safelink.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ScriptingSectionGroup.cs
- DataServiceClientException.cs
- EmbossBitmapEffect.cs
- AudioSignalProblemOccurredEventArgs.cs
- DiscoveryReference.cs
- ModuleConfigurationInfo.cs
- DPAPIProtectedConfigurationProvider.cs
- IssuanceTokenProviderState.cs
- DateTimePicker.cs
- CompiledELinqQueryState.cs
- DependencyPropertyConverter.cs
- TTSEvent.cs
- SevenBitStream.cs
- ToolStripItemTextRenderEventArgs.cs
- MaxSessionCountExceededException.cs
- HierarchicalDataBoundControl.cs
- New.cs
- ObjectSpanRewriter.cs
- Win32KeyboardDevice.cs
- ToolStripStatusLabel.cs
- PackagePart.cs
- ManagementObject.cs
- TemplateAction.cs
- StatusBarPanelClickEvent.cs
- CacheVirtualItemsEvent.cs
- DeclaredTypeElementCollection.cs
- WebPartDisplayModeEventArgs.cs
- SharedHttpTransportManager.cs
- InvokeProviderWrapper.cs
- PeerNameResolver.cs
- DeploymentSection.cs
- AttributeUsageAttribute.cs
- TreeChangeInfo.cs
- GraphicsContext.cs
- DispatcherObject.cs
- FontDialog.cs
- MaxValueConverter.cs
- XmlSchemaSearchPattern.cs
- SwitchElementsCollection.cs
- KeyValueInternalCollection.cs
- Emitter.cs
- Pen.cs
- CompressStream.cs
- rsa.cs
- CharacterBuffer.cs
- XmlILConstructAnalyzer.cs
- FullTextState.cs
- XPathNodeIterator.cs
- ClickablePoint.cs
- MimeTypeAttribute.cs
- Property.cs
- RecordsAffectedEventArgs.cs
- RawStylusInputReport.cs
- MonitoringDescriptionAttribute.cs
- MessageHeaders.cs
- DiscardableAttribute.cs
- ColumnCollection.cs
- IntegrationExceptionEventArgs.cs
- DrawingServices.cs
- CallbackValidator.cs
- SessionStateModule.cs
- SurrogateSelector.cs
- DocumentApplicationDocumentViewer.cs
- VisualSerializer.cs
- ValueSerializer.cs
- SimplePropertyEntry.cs
- Binding.cs
- CompressStream.cs
- Automation.cs
- ExpressionSelection.cs
- TransactionTable.cs
- DbSetClause.cs
- WebPartMovingEventArgs.cs
- HMACMD5.cs
- Roles.cs
- DataGridCell.cs
- InputScope.cs
- SignerInfo.cs
- HitTestDrawingContextWalker.cs
- SiteMapProvider.cs
- AdjustableArrowCap.cs
- LogicalExpr.cs
- UrlAuthFailureHandler.cs
- PropertyEmitterBase.cs
- DecimalAnimationBase.cs
- UIElementHelper.cs
- PiiTraceSource.cs
- QueryGeneratorBase.cs
- TextInfo.cs
- SqlUtil.cs
- StringHandle.cs
- FillBehavior.cs
- SqlClientWrapperSmiStream.cs
- RouteItem.cs
- OleDbInfoMessageEvent.cs
- DetailsViewInsertEventArgs.cs