private void OnAuthenticationFailed(AuthenticationFailedEventArgs e) { if (AuthenticationFailedEvent != null) { AuthenticationFailedEvent(this, e); } }
/// <summary> /// Executed when a API authentication fails. /// </summary> private void AuthenticationFailedHandler(object sender, AuthenticationFailedEventArgs args) { // Execute our callbacks. We don't handle exceptions since this is client code anyway. foreach (var callback in m_authCallbacks) { callback(args.Message); } if (m_config.ThrowExceptionOnAuthFailure) { throw new EmsApiAuthenticationException(args.Message); } System.Diagnostics.Debug.WriteLine("EMS API client encountered authentication failure: {0}", args.Message); }
private void OnAuthenticationFailed(AuthenticationFailedEventArgs e) { AuthenticationFailedEvent?.Invoke(this, e); }