Class NamespaceServiceBehaviorExtension
Provides configuration extension element for the service behavior that sets specified namespace values on service, contracts, and bindings.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class NamespaceServiceBehaviorExtension : BehaviorExtensionElement
Constructors
NamespaceServiceBehaviorExtension()
Declaration
public NamespaceServiceBehaviorExtension()
Properties
BehaviorType
Gets the type of the configured service behavior.
Declaration
public override Type BehaviorType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
BindingsNamespace
Gets or sets the target namespace of all declared bindings. Do not set this property, if you do not want to change the original binding namespaces.
Declaration
[ConfigurationProperty("bindingsNamespace", IsRequired = false)]
public string BindingsNamespace { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ContractsNamespace
Gets or sets the target namespace of all declared contracts (port types). Do not set this property, if you do not want to change the original contract namespaces.
Declaration
[ConfigurationProperty("contractsNamespace", IsRequired = false)]
public string ContractsNamespace { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Host
Gets or sets the service host name that will be used by all endpoints including service metadata.
Declaration
[ConfigurationProperty("host", IsRequired = false)]
public string Host { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ServiceNamespace
Gets or sets the service target namespace value. Do not set this property, if you do not want to change the original service namespace.
Declaration
[ConfigurationProperty("serviceNamespace", IsRequired = false)]
public string ServiceNamespace { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
CreateBehavior()
Returns a configured instance of the service behavior.
Declaration
protected override object CreateBehavior()
Returns
| Type | Description |
|---|---|
| object | Configured instance of the service behavior. |