Class WorkingTime
Work schedule (time, holidays etc.).
Implements
Ecng.Serialization.IPersistable
Namespace: StockSharp.Messages
Assembly: StockSharp.Messages.dll
Syntax
[DisplayNameLoc("Str184")]
[DescriptionLoc("Str408", false)]
public class WorkingTime : Object, IPersistable
Constructors
WorkingTime()
Создать WorkingTime.
Declaration
public WorkingTime()
Properties
IsEnabled
Is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Periods
Schedule validity periods.
Declaration
public List<WorkingTimePeriod> Periods { get; set; }
Property Value
Type | Description |
---|---|
List<WorkingTimePeriod> |
SpecialDays
Special working days and holidays.
Declaration
public IDictionary<DateTime, Range<TimeSpan>[]> SpecialDays { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<DateTime, Ecng.ComponentModel.Range<TimeSpan>[]> |
SpecialHolidays
Holidays that fall on workdays.
Declaration
public DateTime[] SpecialHolidays { get; set; }
Property Value
Type | Description |
---|---|
DateTime[] |
SpecialWorkingDays
Working days, falling on Saturday and Sunday.
Declaration
public DateTime[] SpecialWorkingDays { get; set; }
Property Value
Type | Description |
---|---|
DateTime[] |
Methods
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Implements
Ecng.Serialization.IPersistable