Class PortalSettings
Represents Developer Portal configuration settings.
Inheritance
System.Object
PortalSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class PortalSettings : IExtensibleDataObject, IValidator
Constructors
PortalSettings()
Initializes new instance with the default settings.
Declaration
public PortalSettings()
Fields
DefaultAccessKeyLength
Default length of the generated access key.
Declaration
public const int DefaultAccessKeyLength = 64
Field Value
Type | Description |
---|---|
System.Int32 |
DefaultAccessKeyLifetime
Default validity period of the generated access key.
Declaration
public const int DefaultAccessKeyLifetime = 180
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
AccessKeyLength
Gets or sets the length of the generated access key (in characters). The value must be between 32 and 128. Default is 64.
Declaration
public int AccessKeyLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
AccessKeyLifetime
Gets or sets the validity period of the generated access key (in days). The value must be greater than 0 and less than 1825. Default is 180.
Declaration
public int AccessKeyLifetime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
ExtensionData
Gets or sets System.Runtime.Serialization.ExtensionDataObject that enables serialization round trips.
Declaration
public ExtensionDataObject ExtensionData { get; set; }
Property Value
Type | Description |
---|---|
System.Runtime.Serialization.ExtensionDataObject |
Methods
Validate()
Validates this object's state.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if object's state is valid; otherwise, false. |
Implements
System.Runtime.Serialization.IExtensibleDataObject