Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }