-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBusinessObject.cs
More file actions
94 lines (80 loc) · 1.65 KB
/
BusinessObject.cs
File metadata and controls
94 lines (80 loc) · 1.65 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
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Threading;
using 녴;
namespace TradingPlatform.BusinessLayer;
[DataContract]
[KnownType(typeof(Account))]
[KnownType(typeof(PnLItem))]
public abstract class BusinessObject : IConnectionBindedObject, IUniqueID
{
[CompilerGenerated]
private string 놫놴;
[CompilerGenerated]
private BusinessObjectState 놫놂;
private Connection 놫놎;
[CompilerGenerated]
private string 놫녞;
private static long 놫놫;
public string ConnectionId
{
[CompilerGenerated]
get
{
return 놫놴;
}
[CompilerGenerated]
internal set
{
놫놴 = value;
}
}
public virtual BusinessObjectState State
{
[CompilerGenerated]
get
{
return 놫놂;
}
[CompilerGenerated]
protected internal set
{
놫놂 = value;
}
}
public virtual Connection Connection => 놫놎 ?? (놫놎 = Core.Instance.Connections[ConnectionId]);
internal virtual 놶 ConnectionCache => Connection?.놫놪;
/// <summary>
/// Unique ID during active session. Don't use for serialization
/// </summary>
public string UniqueId
{
[CompilerGenerated]
get
{
return 놫녞;
}
[CompilerGenerated]
private set
{
놫녞 = value;
}
}
internal BusinessObject()
{
}
internal BusinessObject(string P_0)
{
UniqueId = Interlocked.Increment(ref 놫놫).ToString();
ConnectionId = P_0;
State = BusinessObjectState.Normal;
}
[NotPublished]
public virtual BusinessObjectInfo CreateInfo()
{
return new BusinessObjectInfo
{
ConnectionId = ConnectionId
};
}
}