Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / Compilation / WCFModel / GeneratedContractType.cs / 1 / GeneratedContractType.cs
//------------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
//-----------------------------------------------------------------------------
//
// This code is shared between ndp\fx\src\xsp\System\Web\Extensions\Compilation\WCFModel
// and wizard\vsdesigner\designer\microsoft\vsdesigner\WCFModel.
// Please make sure the code files between those two directories are alway in [....] when you make any changes to this code.
// And always test these code in both places before check in.
// The code under ndp\fx\src\xsp\System\Web\Extensions\Compilation\XmlSerializer might have to be regerenated when
// the format of the svcmap file is changed, or class structure has been changed in this directory. Please follow the HowTo file
// under Compilation directory to see how to regerenate that code.
//
using System;
using XmlSerialization = System.Xml.Serialization;
#if WEB_EXTENSIONS_CODE
namespace System.Web.Compilation.WCFModel
#else
namespace Microsoft.VSDesigner.WCFModel
#endif
{
///
/// Map between (targetNamespace, PortTypeName) --> CLR TypeName
///
///
#if WEB_EXTENSIONS_CODE
internal class GeneratedContractType
#else
[CLSCompliant(true)]
public class GeneratedContractType
#endif
{
private string m_TargetNamespace;
private string m_Name;
private string m_ContractType;
private string m_ConfigurationName;
///
/// Constructor
///
/// required by xml serializer
public GeneratedContractType()
{
}
///
/// Constructor
///
///
///
///
///
///
public GeneratedContractType(string targetNamespace, string portName, string contractType, string configurationName)
{
m_TargetNamespace = targetNamespace;
m_Name = portName;
m_ContractType = contractType;
m_ConfigurationName = configurationName;
}
///
/// The TargetNamespace of this contract type in the WSDL file
///
///
///
[XmlSerialization.XmlAttribute()]
public string TargetNamespace
{
get
{
return m_TargetNamespace;
}
set
{
m_TargetNamespace = value;
}
}
///
/// The portTypeName of this contract type in the WSDL file
///
///
///
[XmlSerialization.XmlAttribute()]
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
}
}
///
/// The generated CLR type name of this contract type
///
///
///
[XmlSerialization.XmlAttribute()]
public string ContractType
{
get
{
return m_ContractType;
}
set
{
m_ContractType = value;
}
}
///
/// The name of this contract in the config file
///
///
///
[XmlSerialization.XmlAttribute()]
public string ConfigurationName
{
get
{
return m_ConfigurationName;
}
set
{
m_ConfigurationName = value;
}
}
}
}
// 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.
//
//-----------------------------------------------------------------------------
//
// This code is shared between ndp\fx\src\xsp\System\Web\Extensions\Compilation\WCFModel
// and wizard\vsdesigner\designer\microsoft\vsdesigner\WCFModel.
// Please make sure the code files between those two directories are alway in [....] when you make any changes to this code.
// And always test these code in both places before check in.
// The code under ndp\fx\src\xsp\System\Web\Extensions\Compilation\XmlSerializer might have to be regerenated when
// the format of the svcmap file is changed, or class structure has been changed in this directory. Please follow the HowTo file
// under Compilation directory to see how to regerenate that code.
//
using System;
using XmlSerialization = System.Xml.Serialization;
#if WEB_EXTENSIONS_CODE
namespace System.Web.Compilation.WCFModel
#else
namespace Microsoft.VSDesigner.WCFModel
#endif
{
///
/// Map between (targetNamespace, PortTypeName) --> CLR TypeName
///
///
#if WEB_EXTENSIONS_CODE
internal class GeneratedContractType
#else
[CLSCompliant(true)]
public class GeneratedContractType
#endif
{
private string m_TargetNamespace;
private string m_Name;
private string m_ContractType;
private string m_ConfigurationName;
///
/// Constructor
///
/// required by xml serializer
public GeneratedContractType()
{
}
///
/// Constructor
///
///
///
///
///
///
public GeneratedContractType(string targetNamespace, string portName, string contractType, string configurationName)
{
m_TargetNamespace = targetNamespace;
m_Name = portName;
m_ContractType = contractType;
m_ConfigurationName = configurationName;
}
///
/// The TargetNamespace of this contract type in the WSDL file
///
///
///
[XmlSerialization.XmlAttribute()]
public string TargetNamespace
{
get
{
return m_TargetNamespace;
}
set
{
m_TargetNamespace = value;
}
}
///
/// The portTypeName of this contract type in the WSDL file
///
///
///
[XmlSerialization.XmlAttribute()]
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
}
}
///
/// The generated CLR type name of this contract type
///
///
///
[XmlSerialization.XmlAttribute()]
public string ContractType
{
get
{
return m_ContractType;
}
set
{
m_ContractType = value;
}
}
///
/// The name of this contract in the config file
///
///
///
[XmlSerialization.XmlAttribute()]
public string ConfigurationName
{
get
{
return m_ConfigurationName;
}
set
{
m_ConfigurationName = value;
}
}
}
}
// 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
- DataBoundLiteralControl.cs
- DrawTreeNodeEventArgs.cs
- StringResourceManager.cs
- ViewGenerator.cs
- TemplateControl.cs
- TableCell.cs
- ConfigurationManager.cs
- BitmapSourceSafeMILHandle.cs
- XmlNamespaceManager.cs
- Int64AnimationUsingKeyFrames.cs
- IdentifierService.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ResourceContainer.cs
- COM2Enum.cs
- SqlWebEventProvider.cs
- Guid.cs
- FormsAuthenticationEventArgs.cs
- IriParsingElement.cs
- PartManifestEntry.cs
- Decorator.cs
- GuidelineCollection.cs
- TitleStyle.cs
- ContextMenuAutomationPeer.cs
- DesignerVerb.cs
- ProcessMessagesAsyncResult.cs
- Animatable.cs
- TextViewSelectionProcessor.cs
- GenericParameterDataContract.cs
- ConsoleTraceListener.cs
- ComponentEditorPage.cs
- XmlQueryCardinality.cs
- ZipFileInfoCollection.cs
- validation.cs
- DelegateCompletionCallbackWrapper.cs
- ImageCollectionCodeDomSerializer.cs
- EdmEntityTypeAttribute.cs
- Freezable.cs
- WebPartDisplayModeCancelEventArgs.cs
- WorkflowApplicationCompletedException.cs
- FileDialog_Vista_Interop.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DbConnectionPoolOptions.cs
- ModuleElement.cs
- invalidudtexception.cs
- HttpProcessUtility.cs
- FieldToken.cs
- ByteAnimationUsingKeyFrames.cs
- XmlName.cs
- XamlParser.cs
- CursorInteropHelper.cs
- Recipient.cs
- CompiledQuery.cs
- DBParameter.cs
- WindowsNonControl.cs
- ObjectConverter.cs
- ViewStateException.cs
- JoinElimination.cs
- ReaderOutput.cs
- FormatterConverter.cs
- GeneralTransform2DTo3DTo2D.cs
- CachedPathData.cs
- LineSegment.cs
- DataColumnMapping.cs
- EntityDataSourceDataSelectionPanel.cs
- ObjectSecurity.cs
- DurationConverter.cs
- ReadOnlyPermissionSet.cs
- DrawItemEvent.cs
- GradientBrush.cs
- Win32Native.cs
- XamlFigureLengthSerializer.cs
- HierarchicalDataSourceControl.cs
- Debug.cs
- CookielessHelper.cs
- SourceItem.cs
- InstallerTypeAttribute.cs
- updateconfighost.cs
- EventEntry.cs
- FeatureSupport.cs
- StrokeDescriptor.cs
- SoapExtensionStream.cs
- DocumentReference.cs
- XmlNamespaceMapping.cs
- SizeAnimationBase.cs
- WebException.cs
- RightsManagementUser.cs
- ProviderException.cs
- CriticalExceptions.cs
- VersionUtil.cs
- FilteredXmlReader.cs
- SHA384Managed.cs
- WebPartCancelEventArgs.cs
- SafeArrayTypeMismatchException.cs
- UrlAuthFailedErrorFormatter.cs
- FontInfo.cs
- UIElementHelper.cs
- LostFocusEventManager.cs
- TypedElement.cs
- CollectionContainer.cs
- HttpModuleCollection.cs