private void On(DisabledEvent e) { if (Running) { ForceStop(false); } }
/// <summary> /// Constructor. /// </summary> public PointerModeAndResponse(PointerMode mode, EnabledEvent enabled, DisabledEvent disabled, ClickEvent clicked) { this.mode = mode; this.enabled = enabled; this.disabled = disabled; this.clicked = clicked; }
public async Task EventHandle(DisabledEvent evt) { using var repository = ServiceProvider.GetService <IGrainRepository <WorkflowForm, Guid> >(); var form = await repository.FirstOrDefaultAsync(evt.Id); WorkflowFormHandler.EventHandle(form, evt); await repository.CommitAsync(); }
private void Awake() { Disabled = new DisabledEvent(); Created = new CreatedEvent(); }
public static void EventHandle(WorkflowForm entity, DisabledEvent evt) { entity.Disabled = true; entity.LastModificationTime = evt.LastModificationTime; }
public void EventHandle(WorkflowFormState state, DisabledEvent evt) { WorkflowFormHandler.EventHandle(state, evt); }