public static async Task InvokeActionOnViewAndStateObjectsAsync <T>(View view, Func <T, Task> action) where T : class { await InvokeActionOnViewAndStateObjectsInternalAsync(view, action); var states = CometUtilities.GetViewStateObjects(view); foreach (var state in states) { await InvokeActionOnViewAndStateObjectsInternalAsync(state, action); } }
public static void InvokeActionOnViewAndStateObjects <T>(View view, Action <T> action) where T : class { InvokeActionOnViewAndStateObjectsInternal(view, action); var states = CometUtilities.GetViewStateObjects(view); foreach (var state in states) { InvokeActionOnViewAndStateObjectsInternal(state, action); } }