Class MessageHeader
Represents a SOAP message header which is a part of service operation.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class MessageHeader : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<MessageHeader>
Constructors
MessageHeader()
Initializes a new instance of the MessageHeader object.
Declaration
public MessageHeader()
Properties
DownstreamHeaderId
Gets or sets identifier of the header that needs to be send to physical service. This property is populated for virtual services only.
Declaration
public int? DownstreamHeaderId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
IsSecured
Gets flag indicating that header requires secured binding.
Declaration
public bool IsSecured { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
MessageId
Gets or sets identifier of the message this header is a part of.
Declaration
public int MessageId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Name
Gets or sets header name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Namespace
Gets or sets header namespace.
Declaration
public string Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
| Type | Description |
|---|---|
| EntityType |
Overrides
ProtectionLevel
Gets or sets header protection requirements.
Declaration
public ProtectionLevel? ProtectionLevel { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Net.Security.ProtectionLevel> |
QName
Gets header's XML qualified name.
Declaration
public XmlQualifiedName QName { get; }
Property Value
| Type | Description |
|---|---|
| System.Xml.XmlQualifiedName |
Methods
Equals(MessageHeader)
Determines whether the specified header is equal to the current header.
Declaration
public bool Equals(MessageHeader other)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageHeader | other | The header to compare with the current header. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True, if headers are equal. False, if headers are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | Hash code of the current instance. |
Overrides
IsMatch(MessageHeader, MessageHeader)
Returns flag indicating that provided instances represent the same entity, i.e. the object's natural keys are the same. This method assumes that both instances are assigned to the same parent object.
Declaration
public static bool IsMatch(MessageHeader header1, MessageHeader header2)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageHeader | header1 | First instance to be compared. |
| MessageHeader | header2 | Second instance to be compared. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True, if provided instances represent the same entity. False, otherwise. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if state is valid; otherwise, false. |