Exemple #1
0
 public Command(string name, string description, bool adminOnly, OnExecuteDelegate onExecute)
 {
     Name        = name;
     Description = description;
     AdminOnly   = adminOnly;
     OnExecute   = onExecute;
 }
Exemple #2
0
            public ScheduledOperation(
                T value,
                OnExecuteDelegate onExecuteAsync,
                ExecutionContext executionContext = default,
                string scope = "default",
                CancellationToken cancellationToken = default)
            {
                Value            = value;
                ExecutionContext = executionContext;
                _onExecuteAsync  = onExecuteAsync;
                Scope            = scope;

                TaskCompletionSource = new();

                if (cancellationToken != default)
                {
                    cancellationToken.Register(() =>
                    {
                        TaskCompletionSource.SetCanceled();
                    });
                }
            }
Exemple #3
0
 public DeferredOperation(OnExecuteDelegate onExecuteAsync, GetDeferredOperationsDelegate getDeferredOperations)
 {
     OnExecuteAsync        = onExecuteAsync;
     GetDeferredOperations = getDeferredOperations;
 }
 public BTAction(OnExecuteDelegate _OnExecute)
 {
     OnExecute = _OnExecute;
 }
Exemple #5
0
	public void	AddExecutionHandler( OnExecuteDelegate func ) {
		executionList.Add( func );
	}
Exemple #6
0
	public WebCoroutine( OnExecuteDelegate func ) {
		executionList.Add( func );
	}