Ejemplo n.º 1
0
 static void Thread_LoadCommandList(CommandListResult result)
 {
     try
     {
         result.Commands = LoadCommandList();
     }
     catch (Exception ex)
     {
         result.Exception = ex;
     }
 }
Ejemplo n.º 2
0
        public static void LoadCommandListAsync(Action <CommandListResult> callback)
        {
            var result = new CommandListResult();

            Async.DoWork(() => Thread_LoadCommandList(result), () => callback(result));
        }