Class InstanceSynchronizationElement
Represents a configuration element related to the node instances synchronization during configuration updates.
Inheritance
Namespace: Nevatech.Vsb.Repository.Configuration
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class InstanceSynchronizationElement : ConfigurationElement
Constructors
InstanceSynchronizationElement()
Declaration
public InstanceSynchronizationElement()
Fields
IsEnabledAttributeName
Name of the attribute representing IsEnabled property in the configuration element.
Declaration
public const string IsEnabledAttributeName = "enabled"
Field Value
Type | Description |
---|---|
System.String |
MaximumLockWaitTimeAttributeName
Name of the attribute representing MaximumLockWaitTime property in the configuration element.
Declaration
public const string MaximumLockWaitTimeAttributeName = "maxLockWaitTime"
Field Value
Type | Description |
---|---|
System.String |
SynchronizationFileNameAttributeName
Name of the attribute representing SynchronizationFileName property in the configuration element.
Declaration
public const string SynchronizationFileNameAttributeName = "syncFileName"
Field Value
Type | Description |
---|---|
System.String |
SynchronizationFilePathAttributeName
Name of the attribute representing SynchronizationFilePath property in the configuration element.
Declaration
public const string SynchronizationFilePathAttributeName = "syncFilePath"
Field Value
Type | Description |
---|---|
System.String |
WaitTimeAfterUpdateAttributeName
Name of the attribute representing WaitTimeAfterUpdate property in the configuration element.
Declaration
public const string WaitTimeAfterUpdateAttributeName = "waitTimeAfterUpdate"
Field Value
Type | Description |
---|---|
System.String |
WaitTimeBeforeUpdateAttributeName
Name of the attribute representing WaitTimeBeforeUpdate property in the configuration element.
Declaration
public const string WaitTimeBeforeUpdateAttributeName = "waitTimeBeforeUpdate"
Field Value
Type | Description |
---|---|
System.String |
Properties
IsEnabled
Gets or sets the flag indicating that node configuration updates must be synchronized between multiple node instances. Default is False (instance synchronization is disabled).
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaximumLockWaitTime
Gets or sets the period of time to wait for a synchronization lock acquisition. If the lock cannot be acquired gracefully during the specified time, it will be forcibly taken. If property is set to 0 then lock will never be taken forcibly. Default is 5 minutes.
Declaration
public TimeSpan MaximumLockWaitTime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Properties
Gets collection of configuration element properties.
Declaration
protected override ConfigurationPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
System.Configuration.ConfigurationPropertyCollection |
SynchronizationFileName
Gets or sets the synchronization lock file name (without path). If property is not set then the file name is generated as "lock-<node key>.config".
Declaration
public string SynchronizationFileName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SynchronizationFilePath
Gets or sets the path to a folder or a file share where synchronization lock file will be created. Node's application pool process must have read/write permissions to this folder or file share. If property is not set then lock file is created in the node's configuration cache folder.
Declaration
public string SynchronizationFilePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
WaitTimeAfterUpdate
Gets or sets the time period between setting the instance status to "Healthy" and releasing the synchronization lock. Default is 1 minute.
Declaration
public TimeSpan WaitTimeAfterUpdate { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
WaitTimeBeforeUpdate
Gets or sets the time period between setting the instance status to "Unhealthy" and applying configuration updates. Default is 1 minute.
Declaration
public TimeSpan WaitTimeBeforeUpdate { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |