-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathIMainService.cs
91 lines (49 loc) · 2.17 KB
/
IMainService.cs
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
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using Autofac;
using BusinessObjects.BusinessObjects;
namespace BusinessObjects;
public interface IMainService : IDataService
{
ILifetimeScope Container { get; }
void Init(ILifetimeScope container);
void Dispose();
bool InitScheduler(bool bServerMode);
void RunJobNow(string group, string name);
void StopJobNow(string group, string name);
string GetJobProp(string group, string name, string prop);
void SetJobCronSchedule(string group, string name, string cron);
public List<DealInfo> GetDeals();
List<ScheduledJobInfo> GetAllJobsList();
Dictionary<string, ScheduledJobInfo> GetRunningJobs();
DateTime? GetJobNextTime(string group, string name);
DateTime? GetJobPrevTime(string group, string name);
void PauseScheduler();
void ResumeScheduler();
void ClearCaches();
TimeZoneInfo GetBrokerTimeZone();
ExpertInfo InitExpert(ExpertInfo expert);
ExpertInfo InitTerminal(ExpertInfo expert);
void DeInitExpert(ExpertInfo expert);
void DeInitTerminal(ExpertInfo expert);
void DeployToTerminals(string sourceFolder);
string DeployToAccount(int id);
List<Wallet> GetWalletBalanceRange(int WalletId, DateTime from, DateTime to);
void GetWalletBalanceRangeAsync(int WalletId, DateTime from, DateTime to);
bool UpdateAccountState(AccountState accState);
SignalInfo ListenSignal(long ReciverObj, long flags);
void PostSignalTo(SignalInfo signal);
SignalInfo SendSignal(SignalInfo expert);
void SubscribeToSignals(long objectId);
SignalInfo CreateSignal(SignalFlags flags, long ObjectId, EnumSignals Id, long chartId);
ConcurrentDictionary<string, Rates> GetRates(bool IsReread);
void UpdateRates(List<RatesInfo> rates);
string GetRatesList();
Tuple<Type, Type> EnumToType(EntitiesEnum entities);
Dictionary<EntitiesEnum, Tuple<Type, Type>> GetTypes();
string Levels4Symbol(string strSymbol);
string SaveLevels4Symbol(string strSymbol, string levels);
string GetLogContent(string logName, long size);
object LogList();
}