Table of Contents

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 StudioUserConfig

StockSharp.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

AuthorizationProvider

Authorization

Authorization module.

public IAuthorization Authorization { get; }

Property Value

IAuthorization

CommonSettings

public HydraCommonSettings CommonSettings { get; }

Property Value

HydraCommonSettings

EmailListener

public HydraEmailLogListener EmailListener { get; }

Property Value

HydraEmailLogListener

EmulatorSettings

Settings of exchange emulator.

public MarketEmulatorSettings EmulatorSettings { get; }

Property Value

MarketEmulatorSettings

IsRemoteEnabled

Determines the remote control enabled.

public bool IsRemoteEnabled { get; set; }

Property Value

bool

IsStarted

Any task started.

public bool IsStarted { get; }

Property Value

bool

Manager

public HydraTaskManager Manager { get; }

Property Value

HydraTaskManager

SecurityStorage

public HydraSecurityStorage SecurityStorage { get; }

Property Value

HydraSecurityStorage

Server

Hydra server.

public HydraServer Server { get; }

Property Value

HydraServer

ServerMapping

Server mode mapping security id storage.

public ISecurityMappingStorage ServerMapping { get; }

Property Value

ISecurityMappingStorage

ServerSettings

Hydra server settings.

public HydraServerSettings ServerSettings { get; }

Property Value

HydraServerSettings

Storage

public HydraTaskStorage Storage { get; }

Property Value

HydraTaskStorage

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

CancellationToken

Returns

Task

Task

ProcessRemoteCommand(CommandResponse, CancellationToken)

Process StockSharp.Web.DomainModel.CommandResponse.

public ValueTask ProcessRemoteCommand(CommandResponse response, CancellationToken cancellationToken)

Parameters

response CommandResponse

StockSharp.Web.DomainModel.CommandResponse

cancellationToken CancellationToken

CancellationToken

Returns

ValueTask

ValueTask

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

Action

DataLoaded

Событие о загрузке маркет-данных.

public event Action<IHydraTask, HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>> DataLoaded

Event Type

Action<IHydraTask, HydraTaskSecurity, DataType, DateTimeOffset?, int, IEnumerable<Message>>

RestartRequested

Restart requested event.

public event Action RestartRequested

Event Type

Action

Started

Started event.

public event Action Started

Event Type

Action

Stopped

Stopped event.

public event Action Stopped

Event Type

Action