-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDefaultSessionsContainer.cs
More file actions
95 lines (83 loc) · 2.27 KB
/
DefaultSessionsContainer.cs
File metadata and controls
95 lines (83 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using _003CPrivateImplementationDetails_003E_007B32439FAB_002DE055_002D4B6F_002D932A_002DAD6005671EA2_007D;
using TradingPlatform.BusinessLayer.Integration;
namespace TradingPlatform.BusinessLayer;
public sealed class DefaultSessionsContainer : ISessionsContainer, IMessageBuilder<MessageSessionsContainer>
{
[Serializable]
[CompilerGenerated]
private sealed class 녴
{
public static readonly 녴 놄녹 = new 녴();
public static Func<CustomSession, SessionsSet> 놄녔;
internal SessionsSet 녴(CustomSession P_0)
{
return new SessionsSet
{
Days = P_0.Days,
CertainDates = new DateTime[0],
Sessions = new Session[1]
{
new Session(P_0.Name, P_0.OpenTime, P_0.CloseTime)
}
};
}
}
private static DefaultSessionsContainer 녞놱;
private readonly CustomSession[] 녞놖;
public static DefaultSessionsContainer Instance
{
get
{
lock (typeof(DefaultSessionsContainer))
{
if (녞놱 == null)
{
녞놱 = new DefaultSessionsContainer();
}
}
return 녞놱;
}
}
public ISession[] ActiveSessions => 녞놖;
public TimeZoneInfo TimeZone => null;
private DefaultSessionsContainer()
{
녞놖 = new CustomSession[1]
{
new CustomSession
{
Name = _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.녶놽(),
OpenOffset = TimeSpan.Zero,
CloseOffset = TimeSpan.FromTicks(863999999999L),
Days = Enum.GetValues(typeof(DayOfWeek)).Cast<DayOfWeek>().ToArray(),
Type = SessionType.Main
}
};
}
public ISession[] GetSessionsForDate(DateTime dateTime)
{
return 녞놖;
}
public MessageSessionsContainer BuildMessage()
{
return new MessageSessionsContainer
{
Id = _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.녶녿(),
Name = _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.녶녿(),
Description = string.Empty,
Holidays = new HolidayInfo[0],
SessionsSets = 녞놖?.Select((CustomSession P_0) => new SessionsSet
{
Days = P_0.Days,
CertainDates = new DateTime[0],
Sessions = new Session[1]
{
new Session(P_0.Name, P_0.OpenTime, P_0.CloseTime)
}
}).ToArray()
};
}
}