Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Channels / WebScriptMetadataMessage.cs / 1305376 / WebScriptMetadataMessage.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- #pragma warning disable 1634 // Stops compiler from warning about unknown warnings (for Presharp) namespace System.ServiceModel.Channels { using System; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.Collections.Generic; using System.Xml; using System.Runtime.Serialization; using DiagnosticUtility = System.ServiceModel.DiagnosticUtility; using System.IO; class WebScriptMetadataMessage : BodyWriterMessage { const string proxyContentTag = "JavaScriptProxy"; string proxyContent; public WebScriptMetadataMessage(string action, string proxyContent) : base(MessageVersion.None, action, new WebScriptMetadataBodyWriter(proxyContent)) { this.proxyContent = proxyContent; } protected override void OnBodyToString(XmlDictionaryWriter writer) { writer.WriteStartElement(proxyContentTag); writer.WriteCData(proxyContent); writer.WriteEndElement(); } class WebScriptMetadataBodyWriter : BodyWriter { string proxyContent; public WebScriptMetadataBodyWriter(string proxyContent) : base(true) { this.proxyContent = proxyContent; } protected override void OnWriteBodyContents(XmlDictionaryWriter writer) { writer.WriteRaw(proxyContent); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpecialNameAttribute.cs
- DbConnectionPoolOptions.cs
- CommandManager.cs
- ConnectionStringsSection.cs
- SqlConnectionHelper.cs
- FlowDocumentReaderAutomationPeer.cs
- XamlRtfConverter.cs
- CorrelationHandle.cs
- FileLogRecordStream.cs
- TypeConverterValueSerializer.cs
- ImageFormatConverter.cs
- LogReserveAndAppendState.cs
- NamespaceList.cs
- TemplateParser.cs
- ProjectionCamera.cs
- CategoryNameCollection.cs
- ProbeMatchesApril2005.cs
- SoapHeaderException.cs
- EntityContainerRelationshipSet.cs
- EdmTypeAttribute.cs
- WebPartManagerInternals.cs
- GeneralTransformGroup.cs
- QueryGenerator.cs
- RefExpr.cs
- PassportAuthenticationEventArgs.cs
- IntSumAggregationOperator.cs
- DataGridViewSelectedColumnCollection.cs
- IPAddressCollection.cs
- CannotUnloadAppDomainException.cs
- SqlBooleanizer.cs
- HostedTransportConfigurationBase.cs
- KeyGestureValueSerializer.cs
- parserscommon.cs
- VariableExpressionConverter.cs
- DecoderFallback.cs
- XmlSchemaGroupRef.cs
- UtilityExtension.cs
- CancellationState.cs
- ToolStripPanelDesigner.cs
- CodeExpressionStatement.cs
- GridPattern.cs
- MobileListItem.cs
- PolyBezierSegmentFigureLogic.cs
- ReadContentAsBinaryHelper.cs
- XmlSchemaSimpleTypeUnion.cs
- Journal.cs
- BufferModesCollection.cs
- CodeGroup.cs
- ListViewInsertEventArgs.cs
- HtmlInputButton.cs
- Iis7Helper.cs
- XmlCharacterData.cs
- SymmetricAlgorithm.cs
- PeerNameResolver.cs
- WebPartEditorOkVerb.cs
- SelectedDatesCollection.cs
- TextAutomationPeer.cs
- SmtpLoginAuthenticationModule.cs
- AssemblyGen.cs
- DoubleCollection.cs
- ArgumentNullException.cs
- XsdDateTime.cs
- PersonalizableAttribute.cs
- SafeNativeMethods.cs
- _NestedSingleAsyncResult.cs
- MenuItemAutomationPeer.cs
- ArrayWithOffset.cs
- ObjectItemCachedAssemblyLoader.cs
- Region.cs
- ContextMarshalException.cs
- Tracking.cs
- FilterElement.cs
- SoapCommonClasses.cs
- WebPartMenuStyle.cs
- DesignRelation.cs
- DetailsViewPageEventArgs.cs
- Profiler.cs
- XPathDocumentIterator.cs
- InteropAutomationProvider.cs
- ConnectivityStatus.cs
- StreamWriter.cs
- TimeSpanConverter.cs
- SQLByteStorage.cs
- IDictionary.cs
- FacetEnabledSchemaElement.cs
- listviewsubitemcollectioneditor.cs
- ConditionalExpression.cs
- DeviceContext2.cs
- FixedBufferAttribute.cs
- TreeIterators.cs
- PermissionSet.cs
- DateBoldEvent.cs
- DEREncoding.cs
- SerializationInfo.cs
- ConstructorNeedsTagAttribute.cs
- CompilerScope.cs
- GeneralTransform2DTo3DTo2D.cs
- FactoryRecord.cs
- GeometryCombineModeValidation.cs
- SerTrace.cs