Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Server / System / Data / Services / Serializers / MetadataSerializer.cs / 1 / MetadataSerializer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a serializer for CSDL documents. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Serializers { using System.Data.Services.Providers; using System.IO; using System.Text; ////// Provides support for serializing responses in CSDL format. /// internal sealed class MetadataSerializer : XmlDocumentSerializer { ////// Initializes a new XmlDocumentSerializer, ready to write /// out an XML document /// /// Stream to which output should be sent. /// Base URI from which resources should be resolved. /// Data provider from which metadata should be gathered. /// Text encoding for the response. internal MetadataSerializer( Stream output, Uri baseUri, IDataServiceProvider provider, Encoding encoding) : base(output, baseUri, provider, encoding) { } ///Handles the complete serialization for the specified content. internal override void WriteRequest() { this.Provider.GetMetadata(this.Writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a serializer for CSDL documents. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Serializers { using System.Data.Services.Providers; using System.IO; using System.Text; ////// Provides support for serializing responses in CSDL format. /// internal sealed class MetadataSerializer : XmlDocumentSerializer { ////// Initializes a new XmlDocumentSerializer, ready to write /// out an XML document /// /// Stream to which output should be sent. /// Base URI from which resources should be resolved. /// Data provider from which metadata should be gathered. /// Text encoding for the response. internal MetadataSerializer( Stream output, Uri baseUri, IDataServiceProvider provider, Encoding encoding) : base(output, baseUri, provider, encoding) { } ///Handles the complete serialization for the specified content. internal override void WriteRequest() { this.Provider.GetMetadata(this.Writer); } } } // 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
- ClrProviderManifest.cs
- CapabilitiesAssignment.cs
- TableAutomationPeer.cs
- DataSourceConverter.cs
- HtmlString.cs
- SystemInfo.cs
- InputBinding.cs
- BulletedListDesigner.cs
- DiscoveryDocumentSerializer.cs
- SimpleWorkerRequest.cs
- EnterpriseServicesHelper.cs
- FontDifferentiator.cs
- ChannelParameterCollection.cs
- RegularExpressionValidator.cs
- ResourceSetExpression.cs
- Hash.cs
- BindValidator.cs
- DifferencingCollection.cs
- WindowProviderWrapper.cs
- SystemColors.cs
- FormClosedEvent.cs
- DocumentViewerHelper.cs
- ConnectionPoint.cs
- TextRunCache.cs
- DocumentationServerProtocol.cs
- ToolStripHighContrastRenderer.cs
- RelatedView.cs
- TabletDevice.cs
- Freezable.cs
- ObjectStateEntryDbDataRecord.cs
- XmlSchemaSequence.cs
- PrintingPermissionAttribute.cs
- SmtpLoginAuthenticationModule.cs
- ServiceDescriptionImporter.cs
- LicFileLicenseProvider.cs
- AssemblyResolver.cs
- Rule.cs
- CodeAttachEventStatement.cs
- BitmapSizeOptions.cs
- DataRelation.cs
- SkewTransform.cs
- ping.cs
- FlowDocumentFormatter.cs
- SlipBehavior.cs
- SqlFlattener.cs
- HtmlGenericControl.cs
- Property.cs
- IsolatedStorageFilePermission.cs
- TreeBuilder.cs
- TextContainerChangedEventArgs.cs
- IisTraceListener.cs
- IriParsingElement.cs
- DataBindingList.cs
- AmbientValueAttribute.cs
- MailBnfHelper.cs
- WebControlAdapter.cs
- ReadOnlyDataSource.cs
- LogAppendAsyncResult.cs
- DefaultParameterValueAttribute.cs
- TransformValueSerializer.cs
- WebPartConnectVerb.cs
- Parser.cs
- ResetableIterator.cs
- Visual.cs
- CollectionView.cs
- ZoneLinkButton.cs
- FileStream.cs
- RectValueSerializer.cs
- JsonCollectionDataContract.cs
- SQlBooleanStorage.cs
- ResourceWriter.cs
- CodeIdentifier.cs
- CompilerInfo.cs
- SafeSecurityHandles.cs
- ErrorRuntimeConfig.cs
- MemberPath.cs
- IsolationInterop.cs
- Util.cs
- ServiceReflector.cs
- HuffCodec.cs
- EntityDesignerBuildProvider.cs
- ImageButton.cs
- ObjectQueryExecutionPlan.cs
- Graph.cs
- StreamInfo.cs
- DispatcherFrame.cs
- CodeDomConfigurationHandler.cs
- SqlUnionizer.cs
- HashCoreRequest.cs
- QueryableFilterRepeater.cs
- InputEventArgs.cs
- SrgsText.cs
- ListChangedEventArgs.cs
- formatter.cs
- OdbcUtils.cs
- PropertyOverridesDialog.cs
- PersonalizationProvider.cs
- OrderedDictionary.cs
- SecurityHelper.cs
- RegisteredDisposeScript.cs