6 Commits
Author SHA1 Message Date
mika@stocksharp.com 3b814d26d2 Samples: build from the applications' sources again and follow the awaited API
The applications moved every host into a folder of its own, so the projects the from-source samples reference
are under Xaml\Avalonia and Xaml\Wpf now, and the FIX connector they named lives in the public connectors
repository. Nine WPF samples still named Xaml and Xaml.Charting where they were before: a missing project
reference is only a warning, so they failed later, at the first DevExpress or StockSharp tag of their markup.

The MultiConnect samples sign in through the window the WPF head has. That head keeps the credentials window
in Studio.WebApi.UI, taking the site's client service; the samples asked StockSharp.Xaml for one taking a
fetcher, which the head does not have, and did not compile from sources. The published UI packages are far
behind the sources and are not what the samples are kept in step with: the package-based projects of these
samples compile once the WPF packages built from that head are published.

The WPF samples await the connector's settings window, which the WPF library offers as ConfigureAsync only,
and the active-orders sample awaits the chart's save instead of the obsolete blocking wrapper. The
package-based projects of the same samples compile once a StockSharp.Xaml package that has ConfigureAsync is
published.

The Avalonia samples keep the connection settings through the awaited store: IConnectorSettingsStore reads
and writes through awaited members now, so the sample store reads or writes its file when it is asked instead
of reading both files up front and queueing its writes. The chart sample saves and loads its chart the same
way.

Eight Avalonia samples put the wheel date picker into columns of 150-170 pixels. It does not get narrower
than about three hundred, so the two of them ran over each other and over the Start and Stop buttons. They
take the compact calendar editor now, which the history testing sample already had.
2026-10-15 23:02:33 +03:00
mika@stocksharp.com ebdb3b6c0b Update sample source paths for nested Xaml projects 2026-08-28 18:16:38 +03:00
mika@stocksharp.com bbd808faf2 samples: reference what the samples are actually written against
The samples were pointed at published packages that no longer match the sources
next to them, and at one package they had no business referencing at all.

Connectors come from the sibling checkout rather than from NuGet. The published
connector packages were compiled against a StockSharp.Messages that still had
AsyncMessageAdapter; the source has since dropped it, so a package built against
the old base type fails with CS7069 the moment the local Messages project is in
the graph - which it always is inside this solution. FIX is among them now: it
has moved out of the closed repository and is a project like the others, so the
two Hydra samples that used its package take the project too.

Indicators, strategies and the testing stack used to ship inside StockSharp.Algo
and are separate projects now, so referencing Algo alone left every sample
without SimpleMovingAverage, Strategy and RandomWalkTradeGenerator. Two
references cover it: Algo.Strategies reaches Algo.Testing and Algo transitively,
while Algo.Indicators is not reachable from that chain and has to be named.

01_MultiConnect and 02_StoreDataLocal additionally referenced
StockSharp.Studio.WebApi.UI for exactly one type, CredentialsWindow, and got
Studio.Core and Studio.WebApi with it. That type now lives in StockSharp.Xaml,
so the reference goes - from the package projects and the _fromsrc ones alike.
The dialog takes an ICurrentClientFetcher rather than the web API's client
service, and the sample supplies its own: it already registers an
IApiServiceProvider, the same object Studio's registry reads, so the anonymous
lookup is the call it always was, made directly. Web.Api reached those samples
transitively through the Studio package and is named explicitly now;
StockSharp.Web.DomainModel is aliased rather than imported wholesale, since it
also defines Subscription and DataType, which that file uses from
BusinessEntities and Messages.

Both _fromsrc samples build. The package-based pair does not yet: it takes
StockSharp.Xaml transitively from the published StockSharp.Xaml.Charting, and the
published Xaml has no ICurrentClientFetcher. They compile as soon as
StockSharp.Xaml is republished.

Two samples are left failing rather than papered over: 09_Advanced needs the
republished Xaml above, and 03_Storage/03_RemoteSource uses StockSharp.Finam,
stale in the same way the connector packages were, with no Finam project in the
Connectors checkout to point at instead.
2026-07-30 20:27:13 +03:00
mikasoukhov 6f82c05ee6 Samples. MultiConnect supported S# web api authorization. 2024-12-27 10:42:30 +03:00
mikasoukhov b30bf966ec Fix commit 7f28b31c13 2024-06-22 14:04:27 +03:00
mikasoukhov 7f28b31c13 Samples re-org. 2024-06-22 13:45:38 +03:00