ScriptingService Type
The hub-side gRPC service implementation. Constructed once per hub process; registered into the Kestrel host via `app.MapGrpcService()` in `Program.fs`. Constructor dependencies: * `sessions` — the hub's one-and-only `SessionManager`. * `events` — hub event sink for `ScriptingClient{Connected,Detached}` and `DiagnosticsLine` emissions. * `unitDefs` — thunk that returns the *currently* loaded `UnitDefCache`. Caller threads a closure that reads from the active `SessionManager.State.BarClient.GameState.UnitDefs` when running, else a cached / empty fallback. * `install` / `bundled` / `port` — filled into `GetSessionStatusResponse`. * `state` — authoritative hub-UI state store (feature 040). Lobby-related RPCs (`ConfigureLobby`, `LaunchSession`) read and write through this store so the local GUI and gRPC clients never drift. * `log` — feature-042 Hub log bus. `StreamHubLog` attaches to this; every emit site reads back through it. Additive to the feature-040 constructor. * `opts` — fan-out tunables.
Constructors
| Constructor |
Description
|
Full Usage:
ScriptingService(sessions, events, busEvents, unitDefs, install, bundled, port, state, renderer, overlays, log, opts)
Parameters:
SessionManager
events : IHubEventSink
busEvents : IObservable<HubEvent>
unitDefs : unit -> UnitDefCache
install : BarInstall
bundled : BundledProxyInfo
port : int
state : T
renderer : T
overlays : T
log : T
opts : ScriptingHubOptions
Returns: ScriptingService
|
|
Instance members
| Instance member |
Description
|
|
Snapshot of the currently-connected clients. Used by the gRPC tab for the roster display and by `GetSessionStatus` to populate `clients`.
|
Full Usage:
this.OverflowDetachCount
Returns: int
|
Count of clients that have been detached with `OverflowDropLimit` since the process started. Exposed for the Settings tab's diagnostics counter.
|
Inherited members
Inherited from
ServiceBase
Instance members
Static members
| Static member |
Description
|
Full Usage:
ServiceBase.BindService(serviceBinder) (serviceImpl)
Parameters:
ServiceBinderBase
serviceImpl : ServiceBase
|
|
FSBarV1_Archived