ValueTask IHost.DestroyStateMachine(SessionId sessionId, CancellationToken token) => DestroyStateMachine(sessionId, token);
public ValueTask <IStateMachineController> StartStateMachineAsync(IStateMachine stateMachine, Uri?baseUri, string sessionId, DataModelValue parameters = default) => StartStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(stateMachine, baseUri), parameters);
private async ValueTask <DataModelValue> ExecuteStateMachineWrapper(SessionId sessionId, StateMachineOrigin origin, DataModelValue parameters) { var controller = await StartStateMachineWrapper(sessionId, origin, parameters).ConfigureAwait(false); return(await controller.GetResult(default).ConfigureAwait(false));
public ValueTask <IStateMachineController> StartStateMachineAsync(IStateMachine stateMachine, DataModelValue parameters = default) => StartStateMachineWrapper(SessionId.New(), new StateMachineOrigin(stateMachine), parameters);
public ValueTask <IStateMachineController> StartStateMachineAsync(Uri source, Uri?baseUri, DataModelValue parameters = default) => StartStateMachineWrapper(SessionId.New(), new StateMachineOrigin(source, baseUri), parameters);
public ValueTask <DataModelValue> ExecuteStateMachineAsync(Uri source, Uri?baseUri, string sessionId, DataModelValue parameters = default) => ExecuteStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(source, baseUri), parameters);
public ValueTask <DataModelValue> ExecuteStateMachineAsync(IStateMachine stateMachine, string sessionId, DataModelValue parameters = default) => ExecuteStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(stateMachine), parameters);
public ValueTask <DataModelValue> ExecuteStateMachineAsync(IStateMachine stateMachine, Uri?baseUri, DataModelValue parameters = default) => ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(stateMachine, baseUri), parameters);
public ValueTask <DataModelValue> ExecuteStateMachineAsync(Uri source, DataModelValue parameters = default) => ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(source), parameters);
public ValueTask <DataModelValue> ExecuteStateMachineAsync(string scxml, DataModelValue parameters = default) => ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(scxml), parameters);