private void AuthenticationStateProvider_AuthenticationStateChanged(Task <AuthenticationState> task) { // publishing the even AuthChanged, so that components that are using Auth, do not need to subscribe to the authenticationStateProvider AuthChanged?.Invoke(this, new EventArgs()); // line above is a shortcut for the code below ?. protects from null value exception. //if (AuthChanged != null) //{ // AuthChanged(this, new EventArgs()); //} }
private void AuthDataChanged() { AuthChanged?.Invoke(null, null); }