Exemple #1
0
 ValueTask IHost.DestroyStateMachine(SessionId sessionId, CancellationToken token) => DestroyStateMachine(sessionId, token);
Exemple #2
0
 public ValueTask <IStateMachineController> StartStateMachineAsync(IStateMachine stateMachine,
                                                                   Uri?baseUri,
                                                                   string sessionId,
                                                                   DataModelValue parameters = default) =>
 StartStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(stateMachine, baseUri), parameters);
Exemple #3
0
        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));
Exemple #4
0
 public ValueTask <IStateMachineController> StartStateMachineAsync(IStateMachine stateMachine, DataModelValue parameters = default) =>
 StartStateMachineWrapper(SessionId.New(), new StateMachineOrigin(stateMachine), parameters);
Exemple #5
0
 public ValueTask <IStateMachineController> StartStateMachineAsync(Uri source, Uri?baseUri, DataModelValue parameters = default) =>
 StartStateMachineWrapper(SessionId.New(), new StateMachineOrigin(source, baseUri), parameters);
Exemple #6
0
 public ValueTask <DataModelValue> ExecuteStateMachineAsync(Uri source,
                                                            Uri?baseUri,
                                                            string sessionId,
                                                            DataModelValue parameters = default) =>
 ExecuteStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(source, baseUri), parameters);
Exemple #7
0
 public ValueTask <DataModelValue> ExecuteStateMachineAsync(IStateMachine stateMachine, string sessionId, DataModelValue parameters = default) =>
 ExecuteStateMachineWrapper(SessionId.FromString(sessionId), new StateMachineOrigin(stateMachine), parameters);
Exemple #8
0
 public ValueTask <DataModelValue> ExecuteStateMachineAsync(IStateMachine stateMachine, Uri?baseUri, DataModelValue parameters = default) =>
 ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(stateMachine, baseUri), parameters);
Exemple #9
0
 public ValueTask <DataModelValue> ExecuteStateMachineAsync(Uri source, DataModelValue parameters = default) =>
 ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(source), parameters);
Exemple #10
0
 public ValueTask <DataModelValue> ExecuteStateMachineAsync(string scxml, DataModelValue parameters = default) =>
 ExecuteStateMachineWrapper(SessionId.New(), new StateMachineOrigin(scxml), parameters);