private void request_Completed(object sender, RequestEventArgs e) { JsonValue jsonValue = JsonObject.Parse(e.Result); ClearCacheResult result = ClearCacheResult.FromJson(jsonValue); LastResult = result; ClearCacheEventArgs args = new ClearCacheEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }
private void OnProcessCompleted(ClearCacheEventArgs args) { if (ProcessCompleted != null) { Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args }); } }