Table of Contents

Class WorkingTime

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Work schedule (time, holidays etc.).

[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "WorkSchedule", Description = "WorkScheduleDesc")]
public class WorkingTime : IPersistable
Inheritance
WorkingTime
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

WorkingTime()

Initializes a new instance of the WorkingTime.

public WorkingTime()

Properties

IsEnabled

Is enabled.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Active", Description = "TaskOn", GroupName = "General", Order = 0)]
public bool IsEnabled { get; set; }

Property Value

bool

Periods

Schedule validity periods.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Periods", Description = "PeriodsDesc", GroupName = "General", Order = 1)]
public List<WorkingTimePeriod> Periods { get; set; }

Property Value

List<WorkingTimePeriod>

SpecialDays

Special working days and holidays.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "SpecialDays", Description = "SpecialDaysDesc", GroupName = "General", Order = 2)]
public IDictionary<DateTime, Range<TimeSpan>[]> SpecialDays { get; set; }

Property Value

IDictionary<DateTime, Range<TimeSpan>[]>

SpecialHolidays

Holidays that fall on workdays.

[Browsable(false)]
public DateTime[] SpecialHolidays { get; set; }

Property Value

DateTime[]

SpecialWorkingDays

Working days, falling on Saturday and Sunday.

[Browsable(false)]
public DateTime[] SpecialWorkingDays { get; set; }

Property Value

DateTime[]

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string