public void AddIfRequired(IResourceConfig config) { if (!CurrentMatch(config)) { config.Accept(new AddVisitor(), this); } }
static Task GetStateAsyncDispatch( this StateOperationContext context, IResourceConfig config) => config.Accept(new GetStateAsyncVisitor(), context);
static DependencyLocation GetDependencyLocationDispatch(this IState state, IResourceConfig config) => config.Accept(new GetDependencyLocationVisitor(), state);
Tuple <TimeSlot, int> GetTimeSlotAndDurationDispatch(IResourceConfig config) => config.Accept(new GetTimeSlotAndDurationVisitor(), this);
public Task UpdateStateAsyncDispatch(IResourceConfig config) => config.Accept(new UpdateStateAsyncVisitor(), this);