コード例 #1
0
ファイル: Executable.cs プロジェクト: Berrysoft/ClassLibrary
        public static async Task WorkAsync(this IExecutable executable)
        {
            IExecutable current = executable;

            while (current != null)
            {
                IExecutor executor = current.GetExecutor();
                current = await executor.ExecuteAsync();
            }
        }
コード例 #2
0
ファイル: Executable.cs プロジェクト: Berrysoft/ClassLibrary
        public static void Work(this IExecutable executable)
        {
            IExecutable current = executable;

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