Beispiel #1
0
        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());
            //}
        }
Beispiel #2
0
 private void AuthDataChanged()
 {
     AuthChanged?.Invoke(null, null);
 }