예제 #1
0
        public static async Task WorkAsync(this IExecutable executable)
        {
            IExecutable current = executable;

            while (current != null)
            {
                IExecutor executor = current.GetExecutor();
                current = await executor.ExecuteAsync();
            }
        }
예제 #2
0
        public static void Work(this IExecutable executable)
        {
            IExecutable current = executable;

            while (current != null)
            {
                IExecutor executor = current.GetExecutor();
                current = executor.Execute();
            }
        }