Exemple #1
0
 public Task <IEnumerable <IStateMachine <TState, TInput> > > BulkCreateMachinesAsync(
     ISchematic <TState, TInput> schematic,
     IEnumerable <IDictionary <string, string> > metadata,
     CancellationToken cancellationToken = default)
 {
     return(BulkCreateMachinesAsync(schematic.Clone(), metadata, cancellationToken));
 }
Exemple #2
0
 public Task <IStateMachine <TState, TInput> > CreateMachineAsync(
     ISchematic <TState, TInput> schematic,
     string machineId,
     IDictionary <string, string> metadata = null,
     CancellationToken cancellationToken   = default)
 => CreateMachineAsync(schematic.Clone(), machineId, metadata, cancellationToken);
Exemple #3
0
 public Task <ISchematic <TState, TInput> > StoreSchematicAsync(
     ISchematic <TState, TInput> schematic,
     CancellationToken cancellationToken = default)
 => StoreSchematicAsync(schematic.Clone(), cancellationToken);
Exemple #4
0
 public NaturalSchematic(ISchematic <TypeState, TypeState> schematic)
 {
     _schematic = schematic as Schematic <TypeState, TypeState> ?? schematic.Clone();
 }