internal async Task OpenAsync(CancellationToken cancellationToken) { logger.Debug("Open Session"); if (authenticator == null) { authenticator = AuthenticatorFactory.GetAuthenticator(this); } await authenticator.AuthenticateAsync(cancellationToken).ConfigureAwait(false); }
internal void Open() { logger.Debug("Open Session"); if (authenticator == null) { authenticator = AuthenticatorFactory.GetAuthenticator(this); } authenticator.Authenticate(); }