21 Commits
Author SHA1 Message Date
mika@stocksharp.com 6e7a7dae22 Move instrument lookups and persistence to async
Instrument lookups, configuration, credentials, CSV entities, snapshots and
the alert processing service are read and written asynchronously; the
blocking synchronous forms are obsolete wrappers.

IAsyncPersistable replaces IPersistable: every type that saves and loads its
settings has LoadAsync and SaveAsync only, and nested objects are read with
GetValueAsync, LoadEntireAsync and LoadAllAsync. The synchronous Load and Save
are the obsolete Ecng extensions. The MultiConnect sample keeps IPersistable
for two settings classes, because the settings window of the published
StockSharp.Xaml package takes it.

Copies that were made by saving and loading are made asynchronously.
IMessageAdapter, IIndicator, the risk, commission, PnL, latency, slippage and
position managers, IStorageBuffer, Strategy, DiagramElement, ICompositionModel
and its nodes get CloneAsync and no longer implement ICloneable; Clone is an
obsolete blocking wrapper. A strategy copy keeps every security and portfolio
parameter the original holds. Messages, FieldMapping, BankDetails and
WithdrawInfo are copied in memory. A CommissionRuleMessage shares its rule and
the emulator takes a copy of it. Envelope gets a constructor that takes all
three lines and CreateAsync.

ToBruteForce and ToBruteForceRandom become ToBruteForceAsync and
ToBruteForceRandomAsync and return IAsyncEnumerable; BruteForceOptimizer runs
over it and takes the next strategy through an asynchronous delegate.

Diagram elements keep their own state in SaveState, OnLoading and LoadState.
Undo restores an in-memory snapshot; a chart element holds its series and
axes in it by reference. An alert rule keeps its value in the form a message
carries it. A diagram strategy applies composition settings that were loaded
before the composition was set in SetCompositionAsync or at the start, and
saves them while they wait.

Strategies get an OnStartedAsync hook; diagram strategies resolve securities,
underlyings and strikes before the start so value processing never looks up
instruments. Paths.Serialize, SerializeInvariant, AppStartSettings.TrySave,
ICredentialsProvider.Save, ISnapshotSerializer.Serialize and the composition
registry gain async forms.

ICredentialsProvider.Delete becomes DeleteAsync, so loading, saving and
deleting the credentials wait for one another. Paths.InstalledVersion and
AppNameWithVersion are obsolete in favour of GetInstalledVersionAsync and
GetAppNameWithVersionAsync.

A file is opened for writing only after the last cancellation check, because
opening it empties it; a cancelled read reports the cancellation instead of
an empty result. A snapshot flush that failed leaves what it took due for the
next one.

The indicator templates for C#, F# and Python override LoadAsync and
SaveAsync.
2026-10-04 11:28:17 +03:00
mika@stocksharp.com 5afb0e27b4 Remove IBinaryAdapter interface and IsBinaryEnabled from RemoteMarketDataDrive
Binary FIX protocol is no longer supported. Remove IBinaryAdapter,
IsBinaryEnabled property, and related test/sample code.
2026-03-24 11:52:51 +03:00
mikasoukhov 45068f1b99 IMessageAdapter. GetSupportedDataTypes -> GetSupportedDataTypesAsync 2026-01-29 19:36:25 +03:00
mikasoukhov 4dfb975578 build fix. 2026-01-08 18:34:19 +03:00
mikasoukhov ca6d4de17c build fix. 2025-12-30 23:55:07 +03:00
mikasoukhov 450fe68a0e Updated samples and tests for IFileSystem API. 2025-12-26 03:31:29 +03:00
mikasoukhov 2a32ec7b66 IAsyncEnumerable<T> impl refactoring. 2025-12-20 12:22:30 +03:00
mikasoukhov b67550a4f1 Fix commit 0f17bf9bd2 2025-12-17 14:47:08 +03:00
mikasoukhov daff1dc1ce Fix commit 565a289bdc 2025-11-26 20:14:47 +03:00
mikasoukhov f8d4fa7667 Fix commit 565a289bdc 2025-11-24 18:23:57 +03:00
mikasoukhov f47dc7bd97 Fix commit f2d3237f04 2025-11-10 19:09:30 +03:00
mikasoukhov 0aa71265fc Fix commit 51022b03c2 2025-11-10 18:08:00 +03:00
mikasoukhov 25e621a4cf DateTimeOffset -> DateTime UTC 2025-11-02 18:40:36 +03:00
mikasoukhov 51022b03c2 IMarketDataDrive uses async mode. 2025-10-28 22:44:25 +03:00
mikasoukhov d9dbed1138 Code cleanup. 2025-10-08 11:23:46 +03:00
mikasoukhov b2b2685a08 Code cleanup. 2025-03-25 19:45:31 +03:00
mikasoukhov 35fcefafd2 Fix commit ff61cd3f95 2025-03-23 15:15:10 +03:00
mikasoukhov ff61cd3f95 HydraServerSaveToLocal sample fixes. 2025-03-23 13:44:06 +03:00
mikasoukhov 8f2b35cb1c Fix commit 520e45c3f6 2025-03-20 20:43:13 +03:00
mikasoukhov 444b99ec54 IIndicator, CandleSeries, Candle, IExchangeInfoProvider moved from Algo to BusinessEntities 2024-08-18 19:01:54 +03:00
mikasoukhov 7f28b31c13 Samples re-org. 2024-06-22 13:45:38 +03:00