public void ScopeWith(ARScope scope, ARScope.ScopeGroup?group, ARScope.ScopeComponent component, Action <dynamic>?action = null) { ARScopeEntry entry = new ARScopeEntry(); entry.Inline = () => { InvokeAsync(() => { this.StateHasChanged(); }); }; entry.Override = action; if (group.HasValue) { scope.AddIntoGroup(group.Value, component, entry); } else { scope.AddAction(component, entry); } }
public void ScopeWith(ARScope scope, ARScope.ScopeComponent component, Action <dynamic>?action = null) => this.ScopeWith(scope, null, component, action);