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
- Keywords.cs
- DEREncoding.cs
- ByteAnimation.cs
- FilteredDataSetHelper.cs
- SamlSecurityTokenAuthenticator.cs
- SqlNode.cs
- DataContractJsonSerializer.cs
- ScrollChrome.cs
- BindingOperations.cs
- DateTimeFormatInfoScanner.cs
- ConnectorSelectionGlyph.cs
- BamlLocalizabilityResolver.cs
- FilterElement.cs
- HttpModulesSection.cs
- HMACSHA1.cs
- ZipIOLocalFileDataDescriptor.cs
- AppSettingsExpressionBuilder.cs
- FamilyTypeface.cs
- ReadOnlyPropertyMetadata.cs
- SqlRowUpdatedEvent.cs
- SessionEndingCancelEventArgs.cs
- ComboBox.cs
- ClientProtocol.cs
- VisualTreeHelper.cs
- SqlConnectionManager.cs
- IncrementalCompileAnalyzer.cs
- RegistryKey.cs
- DispatcherTimer.cs
- RelationalExpressions.cs
- XmlSchemaAnnotated.cs
- Message.cs
- ExpandSegment.cs
- ISAPIRuntime.cs
- ByteStack.cs
- QilPatternFactory.cs
- AssemblyAssociatedContentFileAttribute.cs
- AlgoModule.cs
- DetailsViewModeEventArgs.cs
- EventLogPermissionHolder.cs
- ErrorRuntimeConfig.cs
- DayRenderEvent.cs
- ExpressionConverter.cs
- ReaderWriterLockWrapper.cs
- DataRelationCollection.cs
- Certificate.cs
- Model3DGroup.cs
- ServiceBehaviorElementCollection.cs
- EventWaitHandle.cs
- SpeechUI.cs
- ColumnMapProcessor.cs
- BindingExpression.cs
- FloaterBaseParagraph.cs
- TaskFileService.cs
- DBCommandBuilder.cs
- TemplateBindingExtensionConverter.cs
- FormsIdentity.cs
- FixedDSBuilder.cs
- MasterPageCodeDomTreeGenerator.cs
- LineBreak.cs
- Stackframe.cs
- DataColumn.cs
- EntitySetDataBindingList.cs
- SharedUtils.cs
- CompilerGeneratedAttribute.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- WeakEventManager.cs
- XXXInfos.cs
- Bits.cs
- AppliesToBehaviorDecisionTable.cs
- Perspective.cs
- SchemaElementLookUpTableEnumerator.cs
- WmlPanelAdapter.cs
- RelationshipSet.cs
- XamlTreeBuilderBamlRecordWriter.cs
- StateMachine.cs
- InkCanvasSelection.cs
- ContextBase.cs
- BitmapMetadataBlob.cs
- ProxyElement.cs
- HtmlLiteralTextAdapter.cs
- SystemWebCachingSectionGroup.cs
- NotificationContext.cs
- assemblycache.cs
- LayoutTableCell.cs
- FileCodeGroup.cs
- RenderCapability.cs
- StatusCommandUI.cs
- ColorContextHelper.cs
- TypeListConverter.cs
- FormsIdentity.cs
- CallSiteOps.cs
- PreProcessInputEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- ScriptReference.cs
- ReflectionUtil.cs
- _NegoStream.cs
- Panel.cs
- XmlArrayItemAttribute.cs
- DocumentReference.cs
- ContentFilePart.cs