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)); }
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);
public Task <ISchematic <TState, TInput> > StoreSchematicAsync( ISchematic <TState, TInput> schematic, CancellationToken cancellationToken = default) => StoreSchematicAsync(schematic.Clone(), cancellationToken);
public NaturalSchematic(ISchematic <TypeState, TypeState> schematic) { _schematic = schematic as Schematic <TypeState, TypeState> ?? schematic.Clone(); }