Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Compilation / WCFModel / SvcMapFile.cs / 1305376 / SvcMapFile.cs
//------------------------------------------------------------------------------ //// Copyright (C) Microsoft Corporation. All Rights Reserved. // //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; #if WEB_EXTENSIONS_CODE namespace System.Web.Compilation.WCFModel #else namespace Microsoft.VSDesigner.WCFModel #endif { ////// The SvcMapFile is responsible for serializing/deserializing the information in a .svcmap file. /// [System.Xml.Serialization.XmlRootAttribute(Namespace = SvcMapFile.NamespaceUri, ElementName = "ReferenceGroup")] #if WEB_EXTENSIONS_CODE internal class SvcMapFile #else [CLSCompliant(true)] public class SvcMapFile #endif { ////// Namespace for the svcmap file schema /// public const string NamespaceUri = "urn:schemas-microsoft-com:xml-wcfservicemap"; // GUID string, to track the reference group when the name is changed private string m_ID; // Metadata Source List private Listm_MetadataSourceList; // Metadata Item list private List m_MetadataList; // Extension File List private List m_ExtensionFileList; // Generator options private ClientOptions m_ClientOptions; // Errors encountered while loading this file private IEnumerable loadErrors; /// /// Constructor /// public SvcMapFile() { m_ID = Guid.NewGuid().ToString(); } ////// Proxy options /// ////// [System.Xml.Serialization.XmlElement(Order = 0)] public ClientOptions ClientOptions { get { if (m_ClientOptions == null) { m_ClientOptions = new ClientOptions(); } return m_ClientOptions; } set { if (value == null) { throw new ArgumentNullException("value"); } m_ClientOptions = value; } } /// /// Extension item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "Extensions", Order = 3)] [System.Xml.Serialization.XmlArrayItem("ExtensionFile", typeof(ExtensionFile))] public List Extensions { get { if (m_ExtensionFileList == null) { m_ExtensionFileList = new List (); } return m_ExtensionFileList; } } /// /// Unique ID of the reference group. It is a GUID string. /// ////// [System.Xml.Serialization.XmlAttribute()] public string ID { get { return m_ID; } set { m_ID = value; } } /// /// Metadata item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "Metadata", Order = 2)] [System.Xml.Serialization.XmlArrayItem("MetadataFile", typeof(MetadataFile))] public List MetadataList { get { if (m_MetadataList == null) { m_MetadataList = new List (); } return m_MetadataList; } } /// /// Metadata source item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "MetadataSources", Order = 1)] [System.Xml.Serialization.XmlArrayItem("MetadataSource", typeof(MetadataSource))] public List MetadataSourceList { get { if (m_MetadataSourceList == null) { m_MetadataSourceList = new List (); } return m_MetadataSourceList; } } /// /// Errors encountered during load /// [System.Xml.Serialization.XmlIgnore()] public IEnumerableLoadErrors { get { List errors = new List (); if (loadErrors != null) { errors.AddRange(loadErrors); } return errors; } } internal void SetLoadErrors(IEnumerable loadErrors) { this.loadErrors = loadErrors; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // // Copyright (C) Microsoft Corporation. All Rights Reserved. // //----------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; #if WEB_EXTENSIONS_CODE namespace System.Web.Compilation.WCFModel #else namespace Microsoft.VSDesigner.WCFModel #endif { ////// The SvcMapFile is responsible for serializing/deserializing the information in a .svcmap file. /// [System.Xml.Serialization.XmlRootAttribute(Namespace = SvcMapFile.NamespaceUri, ElementName = "ReferenceGroup")] #if WEB_EXTENSIONS_CODE internal class SvcMapFile #else [CLSCompliant(true)] public class SvcMapFile #endif { ////// Namespace for the svcmap file schema /// public const string NamespaceUri = "urn:schemas-microsoft-com:xml-wcfservicemap"; // GUID string, to track the reference group when the name is changed private string m_ID; // Metadata Source List private Listm_MetadataSourceList; // Metadata Item list private List m_MetadataList; // Extension File List private List m_ExtensionFileList; // Generator options private ClientOptions m_ClientOptions; // Errors encountered while loading this file private IEnumerable loadErrors; /// /// Constructor /// public SvcMapFile() { m_ID = Guid.NewGuid().ToString(); } ////// Proxy options /// ////// [System.Xml.Serialization.XmlElement(Order = 0)] public ClientOptions ClientOptions { get { if (m_ClientOptions == null) { m_ClientOptions = new ClientOptions(); } return m_ClientOptions; } set { if (value == null) { throw new ArgumentNullException("value"); } m_ClientOptions = value; } } /// /// Extension item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "Extensions", Order = 3)] [System.Xml.Serialization.XmlArrayItem("ExtensionFile", typeof(ExtensionFile))] public List Extensions { get { if (m_ExtensionFileList == null) { m_ExtensionFileList = new List (); } return m_ExtensionFileList; } } /// /// Unique ID of the reference group. It is a GUID string. /// ////// [System.Xml.Serialization.XmlAttribute()] public string ID { get { return m_ID; } set { m_ID = value; } } /// /// Metadata item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "Metadata", Order = 2)] [System.Xml.Serialization.XmlArrayItem("MetadataFile", typeof(MetadataFile))] public List MetadataList { get { if (m_MetadataList == null) { m_MetadataList = new List (); } return m_MetadataList; } } /// /// Metadata source item list /// ////// [System.Xml.Serialization.XmlArray(ElementName = "MetadataSources", Order = 1)] [System.Xml.Serialization.XmlArrayItem("MetadataSource", typeof(MetadataSource))] public List MetadataSourceList { get { if (m_MetadataSourceList == null) { m_MetadataSourceList = new List (); } return m_MetadataSourceList; } } /// /// Errors encountered during load /// [System.Xml.Serialization.XmlIgnore()] public IEnumerableLoadErrors { get { List errors = new List (); if (loadErrors != null) { errors.AddRange(loadErrors); } return errors; } } internal void SetLoadErrors(IEnumerable loadErrors) { this.loadErrors = loadErrors; } } } // 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
- DataTablePropertyDescriptor.cs
- XPathAncestorIterator.cs
- FormViewUpdateEventArgs.cs
- GridViewColumnHeader.cs
- FontConverter.cs
- MaskedTextBox.cs
- WinFormsSecurity.cs
- StrokeNodeData.cs
- ResourceType.cs
- LambdaCompiler.cs
- ConfigurationValidatorBase.cs
- ProxyWebPartConnectionCollection.cs
- EncryptedPackageFilter.cs
- Int32Storage.cs
- TypeUtil.cs
- _RegBlobWebProxyDataBuilder.cs
- StandardCommands.cs
- CodeExporter.cs
- DefaultMemberAttribute.cs
- DropShadowEffect.cs
- DataSpaceManager.cs
- SmiEventSink.cs
- X509RawDataKeyIdentifierClause.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ValueCollectionParameterReader.cs
- TypeInformation.cs
- FixedSOMGroup.cs
- _Semaphore.cs
- SqlProfileProvider.cs
- ToolBar.cs
- StreamUpdate.cs
- LinqDataSourceView.cs
- _LocalDataStore.cs
- DodSequenceMerge.cs
- RadioButtonBaseAdapter.cs
- ValidatingPropertiesEventArgs.cs
- ConfigXmlWhitespace.cs
- XmlAggregates.cs
- BuildResultCache.cs
- AudioStateChangedEventArgs.cs
- FilteredXmlReader.cs
- securitycriticaldata.cs
- UriSection.cs
- SelectingProviderEventArgs.cs
- IItemContainerGenerator.cs
- SHA1Managed.cs
- ProcessModelInfo.cs
- PointConverter.cs
- Array.cs
- TextBoxBaseDesigner.cs
- ValueQuery.cs
- State.cs
- ListView.cs
- VirtualPathUtility.cs
- CollectionViewSource.cs
- SafeFileMappingHandle.cs
- WinInetCache.cs
- LinearGradientBrush.cs
- XmlAttributeProperties.cs
- BitmapEffectGroup.cs
- ListViewInsertionMark.cs
- SqlCacheDependencyDatabase.cs
- TextEncodedRawTextWriter.cs
- CngKey.cs
- XmlSyndicationContent.cs
- DoubleLinkList.cs
- Point3DCollection.cs
- ReferenceSchema.cs
- columnmapfactory.cs
- WindowsAuthenticationEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- ImageMap.cs
- XPathNodeIterator.cs
- InternalConfigHost.cs
- precedingsibling.cs
- FormatControl.cs
- TaskFormBase.cs
- TypeHelper.cs
- AmbientProperties.cs
- _CookieModule.cs
- StateDesigner.TransitionInfo.cs
- _BaseOverlappedAsyncResult.cs
- PathGeometry.cs
- Trace.cs
- BamlResourceSerializer.cs
- VariantWrapper.cs
- EmbeddedMailObjectsCollection.cs
- Menu.cs
- RoutedEventArgs.cs
- FileDataSourceCache.cs
- DateTime.cs
- Attributes.cs
- URLString.cs
- ByteAnimationUsingKeyFrames.cs
- TextContainer.cs
- ScopelessEnumAttribute.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- TrackingProvider.cs
- OutKeywords.cs
- PerformanceCounterLib.cs