github fedeAlterio/SignalsDotnet v3.1.2

latest releases: v3.4.1, v3.4.0, v3.3.1...
one month ago

Signals on the backend.
Basically support for GraphQL like queries string, to obtain computed properties exposed in a server (SSE, SignalR etc..)
image

SignalsDotnet.Query 3.1.2-alpha

  • SignalsQuery parses a brace-delimited selection set ({ title, sensors { name reading } }), with TryParse for client-supplied input.
  • SignalIsland<T> binds a model to a Synchronization Context with single-threaded semantics, so it needs no locks even while serving concurrent requests. Access it with InvokeAsync or SwitchToIslandContextAsync.
  • ReadComputedValuesAsync streams the projection as an IAsyncEnumerable, backed by a drop-oldest channel so a slow consumer receives the latest state instead of blocking the model.
  • A query also compiles to a plain selector via ToQuerySelector<T>().

SignalsDotnet.AspNetCore 3.1.2-alpha

  • AddSingletonSignalIsland<T>(), plus scoped and transient variants, each with a factory overload. Constructor dependencies resolve through ActivatorUtilities.
  • Inject SignalIsland<T> and stream it straight out of a minimal API with TypedResults.ServerSentEvents.

See the Queries section of the README for the four-step walkthrough, and the Playground projects for a running example with a client.

Don't miss a new SignalsDotnet release

NewReleases is sending notifications on new releases.