public static async Task <string> Ajax(AsyncAjaxOptions options) { var task = Task.FromPromise <string>( new AsyncAjax(options), (Func <XMLHttpRequest, string>)((request) => request.responseText) ); return(await task); }
public AsyncAjax(AsyncAjaxOptions options) { Options = options; }