Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / TextReturnReader.cs / 1305376 / TextReturnReader.cs
namespace System.Web.Services.Protocols { using System.IO; using System; using System.Web.Services; using System.Text; using System.Net; using System.Security.Permissions; ///[PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")] public class TextReturnReader : MimeReturnReader { PatternMatcher matcher; /// public override void Initialize(object o) { matcher = (PatternMatcher)o; } /// public override object GetInitializer(LogicalMethodInfo methodInfo) { return new PatternMatcher(methodInfo.ReturnType); } /// public override object Read(WebResponse response, Stream responseStream) { try { string decodedString = RequestResponseUtils.ReadResponse(response); return matcher.Match(decodedString); } finally { response.Close(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Services.Protocols { using System.IO; using System; using System.Web.Services; using System.Text; using System.Net; using System.Security.Permissions; /// [PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")] public class TextReturnReader : MimeReturnReader { PatternMatcher matcher; /// public override void Initialize(object o) { matcher = (PatternMatcher)o; } /// public override object GetInitializer(LogicalMethodInfo methodInfo) { return new PatternMatcher(methodInfo.ReturnType); } /// public override object Read(WebResponse response, Stream responseStream) { try { string decodedString = RequestResponseUtils.ReadResponse(response); return matcher.Match(decodedString); } finally { response.Close(); } } } } // 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
- BitmapEffectGroup.cs
- XdrBuilder.cs
- IndexingContentUnit.cs
- StringBlob.cs
- InputMethodStateChangeEventArgs.cs
- DropShadowBitmapEffect.cs
- CompiledQueryCacheEntry.cs
- GeneratedView.cs
- XmlIncludeAttribute.cs
- TriState.cs
- ProfilePropertySettings.cs
- ContentType.cs
- ChannelServices.cs
- Brush.cs
- Keywords.cs
- ContentType.cs
- FixedMaxHeap.cs
- _TimerThread.cs
- Storyboard.cs
- xsdvalidator.cs
- BatchParser.cs
- CqlLexerHelpers.cs
- RootBrowserWindowAutomationPeer.cs
- SortKey.cs
- SoapWriter.cs
- SystemKeyConverter.cs
- ViewStateException.cs
- TextPatternIdentifiers.cs
- TimelineGroup.cs
- Char.cs
- ActivityMarkupSerializer.cs
- QilReplaceVisitor.cs
- DbProviderConfigurationHandler.cs
- BackgroundFormatInfo.cs
- WebPartVerbCollection.cs
- Wizard.cs
- SchemaElementLookUpTable.cs
- Deserializer.cs
- RuleProcessor.cs
- DataGridViewRowEventArgs.cs
- FunctionDetailsReader.cs
- GroupBox.cs
- NavigateUrlConverter.cs
- UIntPtr.cs
- PersonalizationProviderHelper.cs
- FolderBrowserDialog.cs
- XPathAncestorQuery.cs
- CheckedPointers.cs
- IsolatedStorageFileStream.cs
- WorkerProcess.cs
- FormsAuthenticationConfiguration.cs
- COSERVERINFO.cs
- RegexWriter.cs
- ExtensibleClassFactory.cs
- DataServiceOperationContext.cs
- PreviewKeyDownEventArgs.cs
- AsynchronousChannelMergeEnumerator.cs
- TableLayoutPanelCellPosition.cs
- TokenizerHelper.cs
- TreeNodeCollection.cs
- AnnotationMap.cs
- HostedTransportConfigurationManager.cs
- DeferredRunTextReference.cs
- Image.cs
- CachedBitmap.cs
- StorageModelBuildProvider.cs
- WorkflowPersistenceContext.cs
- SiteOfOriginContainer.cs
- FormViewInsertedEventArgs.cs
- XmlEncoding.cs
- OleDbCommand.cs
- TableStyle.cs
- PenCursorManager.cs
- TableProviderWrapper.cs
- WhileDesigner.xaml.cs
- OdbcConnectionStringbuilder.cs
- PageSettings.cs
- WebBrowserSiteBase.cs
- EditorZoneAutoFormat.cs
- MaterializeFromAtom.cs
- SmtpFailedRecipientsException.cs
- TrackingMemoryStreamFactory.cs
- DesignerLoader.cs
- WebPartConnectionsCancelEventArgs.cs
- SqlTypeConverter.cs
- Stack.cs
- AnimationException.cs
- QilPatternFactory.cs
- RC2CryptoServiceProvider.cs
- DictionaryEntry.cs
- Rect.cs
- ISessionStateStore.cs
- sqlnorm.cs
- PixelFormat.cs
- SelectedPathEditor.cs
- Hashtable.cs
- HitTestWithPointDrawingContextWalker.cs
- ToolBarButtonClickEvent.cs
- OleDbConnectionInternal.cs
- GlobalizationSection.cs