Interface IBpSessions
- Namespace
- BpNexT.Actions.Abstractions
- Assembly
- BpNexT.Actions.Abstractions.dll
Lends short-lived, serialized access to the runtime's cached Bp sessions. Each call waits for the profile's session, runs the work, and releases the session again — concurrent calls on the same profile queue up, exactly like action runs do. Never keep the IBpSession beyond the delegate: it belongs to the runtime and is only leased for the call.
public interface IBpSessions
Methods
- RunAsync<TResult>(Func<IBpSession, TResult>, CancellationToken)
Runs work against the default connection profile's session.
- RunAsync<TResult>(string?, Func<IBpSession, TResult>, CancellationToken)
Runs work against a specific connection profile's session.
- RunGraphQlAsync<TResult>(Func<IBpQlSession, TResult>, CancellationToken)
Runs GraphQL work against the default connection profile's session; the profile must be a GraphQL connection.
- RunGraphQlAsync<TResult>(string?, Func<IBpQlSession, TResult>, CancellationToken)
Runs GraphQL work against a specific connection profile's session; the profile must be a GraphQL connection.