Class Hydra
- Namespace
- StockSharp.Hydra.Core
- Assembly
- StockSharp.Hydra.Core.dll
Hydra logic.
public class Hydra : BaseLogReceiver, IPersistable, ILogReceiver, ILogSource, IDisposable
- Inheritance
-
Hydra
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
Hydra(StudioUserConfig, Func<App>)
Initializes a new instance of the Hydra.
public Hydra(StudioUserConfig config, Func<App> createApp)
Parameters
config
StudioUserConfigStockSharp.Studio.Core.Configuration.StudioUserConfig
createApp
Func<App>Create StockSharp.Web.DomainModel.App info.
Properties
AuthProvider
Ecng.Security.IAuthorization provider.
public AuthorizationProvider AuthProvider { get; }
Property Value
Authorization
Authorization module.
public IAuthorization Authorization { get; }
Property Value
- IAuthorization
CommonSettings
public HydraCommonSettings CommonSettings { get; }
Property Value
EmailListener
public HydraEmailLogListener EmailListener { get; }
Property Value
EmulatorSettings
Settings of exchange emulator.
public MarketEmulatorSettings EmulatorSettings { get; }
Property Value
IsRemoteEnabled
Determines the remote control enabled.
public bool IsRemoteEnabled { get; set; }
Property Value
IsStarted
Any task started.
public bool IsStarted { get; }
Property Value
Manager
public HydraTaskManager Manager { get; }
Property Value
SecurityStorage
public HydraSecurityStorage SecurityStorage { get; }
Property Value
Server
Hydra server.
public HydraServer Server { get; }
Property Value
ServerMapping
Server mode mapping security id storage.
public ISecurityMappingStorage ServerMapping { get; }
Property Value
ServerSettings
Hydra server settings.
public HydraServerSettings ServerSettings { get; }
Property Value
Storage
public HydraTaskStorage Storage { get; }
Property Value
Methods
CanStartStop()
Determines the tasks can start or stop.
public bool CanStartStop()
Returns
- bool
Check result.
DisposeManaged()
protected override void DisposeManaged()
Initialize(CancellationToken)
Initialize.
public Task Initialize(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
ProcessRemoteCommand(CommandResponse, CancellationToken)
Process StockSharp.Web.DomainModel.CommandResponse.
public ValueTask ProcessRemoteCommand(CommandResponse response, CancellationToken cancellationToken)
Parameters
response
CommandResponseStockSharp.Web.DomainModel.CommandResponse
cancellationToken
CancellationToken
Returns
Start(IEnumerable<IHydraTask>)
Start tasks.
public bool Start(IEnumerable<IHydraTask> tasks)
Parameters
tasks
IEnumerable<IHydraTask>Tasks.
Returns
- bool
Operation result.
StartAll()
Start all enabled tasks.
public void StartAll()
Stop(IEnumerable<IHydraTask>)
Stop tasks.
public void Stop(IEnumerable<IHydraTask> tasks)
Parameters
tasks
IEnumerable<IHydraTask>Tasks.
StopAll()
Stop all started tasks.
public void StopAll()
TryStartServer()
Try start server.
public bool TryStartServer()
Returns
- bool
Operation result.
Events
CloseRequested
Close requested event.
public event Action CloseRequested
Event Type
DataLoaded
Событие о загрузке маркет-данных.
public event Action<IHydraTask, HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>> DataLoaded
Event Type
RestartRequested
Restart requested event.
public event Action RestartRequested
Event Type
Started
Started event.
public event Action Started
Event Type
Stopped
Stopped event.
public event Action Stopped