Class XmlNamespaceReplaceComponent
Implements a message pipeline component that replaces all namespaces in the intercepted XML message to the specified value.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Processing
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class XmlNamespaceReplaceComponent : TransformationComponentBase, IValidator, IEquatable<MessagePipelineComponentBase>, IExtensibleDataObject
  Constructors
XmlNamespaceReplaceComponent()
Declaration
public XmlNamespaceReplaceComponent()
  Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "REPLACE-NAMESPACE"
  Field Value
| Type | Description | 
|---|---|
| String | 
Properties
Namespace
Gets or sets the namespace to be set on all XML elements and XML attributes in the intercepted message body. Value may contain a specially formatted context property name which value must be used as the namespace. Namespace can be empty.
Declaration
public string Namespace { get; set; }
  Property Value
| Type | Description | 
|---|---|
| String | 
Methods
Equals(MessagePipelineComponentBase)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(MessagePipelineComponentBase other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MessagePipelineComponentBase | other | The object to compare with the current object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True if the specified object is equal to the current object; otherwise, false.  | 
      
Overrides
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | The object to compare with the current object.  | 
      
Returns
| Type | Description | 
|---|---|
| Boolean | True if the specified object is equal to the current object; otherwise, false.  | 
      
Overrides
GetHashCode()
Returns hash code for the value of this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| Int32 | Hash code for the value of this instance.  | 
      
Overrides
ProcessMessage(MessagePipelineContext)
Transforms the XML message content so that all element's and attribute's namespaces were set to the specified value.
Declaration
public override MessagePipelineResult ProcessMessage(MessagePipelineContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| MessagePipelineContext | context | Provides the message processing context.  | 
      
Returns
| Type | Description | 
|---|---|
| MessagePipelineResult | Value indicating if message should continue on its way to the recipient or must be stopped and returned to the sender.  | 
      
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| String | String representing the object's content.  | 
      
Overrides
Validate()
Evaluates the state of the object.
Declaration
public override bool Validate()
  Returns
| Type | Description | 
|---|---|
| Boolean | True if state is valid; otherwise, false.  |