Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / Compilation / WCFModel / SvcMapFile.cs / 1 / 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 List m_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 IEnumerable LoadErrors
{
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 List m_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 IEnumerable LoadErrors
{
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
- WorkflowNamespace.cs
- ContainsRowNumberChecker.cs
- XamlToRtfParser.cs
- ServicePrincipalNameElement.cs
- ControlBindingsCollection.cs
- MinMaxParagraphWidth.cs
- XmlBinaryReader.cs
- ReaderWriterLockSlim.cs
- RMEnrollmentPage2.cs
- VirtualDirectoryMapping.cs
- CertificateManager.cs
- XPathDocumentNavigator.cs
- TextModifierScope.cs
- MasterPageBuildProvider.cs
- XmlEntityReference.cs
- DnsPermission.cs
- RelationshipSet.cs
- Publisher.cs
- ClassDataContract.cs
- SimpleParser.cs
- SqlDataSource.cs
- IgnoreDeviceFilterElement.cs
- EventLogPermissionEntry.cs
- FragmentQuery.cs
- SortAction.cs
- CleanUpVirtualizedItemEventArgs.cs
- RemotingServices.cs
- ExpressionVisitorHelpers.cs
- CompilerTypeWithParams.cs
- XmlSerializer.cs
- TreeViewTemplateSelector.cs
- MediaPlayerState.cs
- HttpListenerRequest.cs
- CodeComment.cs
- initElementDictionary.cs
- CaseCqlBlock.cs
- Padding.cs
- AddingNewEventArgs.cs
- NamespaceList.cs
- Propagator.cs
- Int64.cs
- ListViewDeletedEventArgs.cs
- FixUp.cs
- UnsafeNativeMethods.cs
- BidirectionalDictionary.cs
- Win32Interop.cs
- SweepDirectionValidation.cs
- InlineCollection.cs
- KeyedCollection.cs
- DBSchemaRow.cs
- NavigationExpr.cs
- PlatformCulture.cs
- RegexRunnerFactory.cs
- ObjectDataSource.cs
- StringDictionaryWithComparer.cs
- NativeCompoundFileAPIs.cs
- AuthenticatedStream.cs
- HyperLinkColumn.cs
- SqlEnums.cs
- MessageQueueCriteria.cs
- XmlWriter.cs
- MemberPath.cs
- WpfWebRequestHelper.cs
- AvTraceDetails.cs
- LinkedResourceCollection.cs
- WindowsTreeView.cs
- ControlPropertyNameConverter.cs
- PointAnimationBase.cs
- ExtensionFile.cs
- TableLayoutPanelCellPosition.cs
- LinqDataView.cs
- CompilerParameters.cs
- DbParameterHelper.cs
- XmlQueryTypeFactory.cs
- SRDisplayNameAttribute.cs
- XsltInput.cs
- CommandLineParser.cs
- OleDbEnumerator.cs
- Merger.cs
- PrintController.cs
- BaseTemplateParser.cs
- ExplicitDiscriminatorMap.cs
- Region.cs
- DesignerAutoFormatCollection.cs
- WebServiceReceiveDesigner.cs
- XmlSiteMapProvider.cs
- ContextStaticAttribute.cs
- HighlightComponent.cs
- AliasExpr.cs
- ModuleElement.cs
- WmlControlAdapter.cs
- XmlSchemaInferenceException.cs
- AlgoModule.cs
- ComPlusSynchronizationContext.cs
- ImageAutomationPeer.cs
- RadioButtonStandardAdapter.cs
- SimplePropertyEntry.cs
- PersonalizationProvider.cs
- HtmlEncodedRawTextWriter.cs
- SevenBitStream.cs