Show / Hide Table of Contents

    Class Contract

    Represents a service contract (service description port type).

    Inheritance
    Object
    DomainObjectBase
    Contract
    ContractDefinition
    Implements
    IValidator
    IExtensibleDataObject
    IEquatable<Contract>
    Inherited Members
    DomainObjectBase.IsValidElementName(String)
    DomainObjectBase.AreEqual(Nullable<DateTime>, Nullable<DateTime>)
    DomainObjectBase.Equals(DomainObjectBase)
    DomainObjectBase.Id
    DomainObjectBase.Key
    DomainObjectBase.Created
    DomainObjectBase.Updated
    DomainObjectBase.IsMajorObject
    DomainObjectBase.ErrorMessage
    DomainObjectBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public class Contract : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Contract>

    Constructors

    Contract()

    Initializes a new instance of the Contract object.

    Declaration
    public Contract()

    Properties

    Description

    Gets or sets contract description.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    String

    IsEnabled

    Gets or sets flag indication that contract is enabled (contract operations are known by the runtime). Property is applied to virtual services only.

    Declaration
    public bool IsEnabled { get; set; }
    Property Value
    Type Description
    Boolean

    IsPublished

    Gets or sets flag indication that contract is listed in service metadata. Property is applied to virtual services only.

    Declaration
    public bool IsPublished { get; set; }
    Property Value
    Type Description
    Boolean

    IsSecured

    Gets flag indicating that contract requires secured binding.

    Declaration
    public bool IsSecured { get; }
    Property Value
    Type Description
    Boolean

    Name

    Gets or sets contract name.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    Namespace

    Gets or sets contract namespace.

    Declaration
    public string Namespace { get; set; }
    Property Value
    Type Description
    String

    ObjectType

    Gets object type identifier.

    Declaration
    public override EntityType ObjectType { get; }
    Property Value
    Type Description
    EntityType
    Overrides
    DomainObjectBase.ObjectType

    ProtectionLevel

    Gets or sets contract protection level.

    Declaration
    public ProtectionLevel? ProtectionLevel { get; set; }
    Property Value
    Type Description
    Nullable<ProtectionLevel>

    QName

    Gets contract XML qualified name.

    Declaration
    public XmlQualifiedName QName { get; }
    Property Value
    Type Description
    XmlQualifiedName

    ServiceVersionId

    Gets or sets service version identifier this contract belongs to.

    Declaration
    public int ServiceVersionId { get; set; }
    Property Value
    Type Description
    Int32

    SessionMode

    Gets or sets contract session requirement.

    Declaration
    public SessionMode SessionMode { get; set; }
    Property Value
    Type Description
    SessionMode

    Methods

    Equals(Contract)

    Determines whether the specified contract is equal to the current contract.

    Declaration
    public bool Equals(Contract other)
    Parameters
    Type Name Description
    Contract other

    The contract to compare with the current contract.

    Returns
    Type Description
    Boolean

    True, if contracts are equal. False, if contracts 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
    Object obj

    The object to compare with the current object.

    Returns
    Type Description
    Boolean

    True, if objects are equal. False, if objects are not equal.

    Overrides
    DomainObjectBase.Equals(Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the current instance.

    Overrides
    DomainObjectBase.GetHashCode()

    IsMatch(Contract, Contract)

    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(Contract contract1, Contract contract2)
    Parameters
    Type Name Description
    Contract contract1

    First instance to be compared.

    Contract contract2

    Second instance to be compared.

    Returns
    Type Description
    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
    String

    A string that represents the current object.

    Overrides
    DomainObjectBase.ToString()

    Validate()

    Evaluates the state of this object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    DomainObjectBase.Validate()

    Implements

    IValidator
    System.Runtime.Serialization.IExtensibleDataObject
    System.IEquatable<T>
    Back to top Nevatech Sentinet 6.5 Online Documentation