Пример #1
0
 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);
Пример #3
0
 static DependencyLocation GetDependencyLocationDispatch(this IState state, IResourceConfig config)
 => config.Accept(new GetDependencyLocationVisitor(), state);
Пример #4
0
 Tuple <TimeSlot, int> GetTimeSlotAndDurationDispatch(IResourceConfig config)
 => config.Accept(new GetTimeSlotAndDurationVisitor(), this);
 public Task UpdateStateAsyncDispatch(IResourceConfig config)
 => config.Accept(new UpdateStateAsyncVisitor(), this);