Пример #1
0
 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;
 }
Пример #3
0
        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();
        }
Пример #4
0
 private void Awake()
 {
     Disabled = new DisabledEvent();
     Created  = new CreatedEvent();
 }
Пример #5
0
 public static void EventHandle(WorkflowForm entity, DisabledEvent evt)
 {
     entity.Disabled             = true;
     entity.LastModificationTime = evt.LastModificationTime;
 }
Пример #6
0
 public void EventHandle(WorkflowFormState state, DisabledEvent evt)
 {
     WorkflowFormHandler.EventHandle(state, evt);
 }