public async Task <string> TestPromiseCallback(ICallback callback) { var obj = await callback.ExecuteAsync(); return(obj as string); }
public void TestCallback(ICallback callback, string input) { callback.ExecuteAsync(input + " World!"); }