Пример #1
0
        public bool TryAuthenticate(AuthenticationParameters parameters, out Task <IAccessToken> token)
        {
            var source = new CancellationTokenSource();

            return(TryAuthenticate(parameters, source.Token, out token));
        }
Пример #2
0
 public abstract Task <IAccessToken> Authenticate(AuthenticationParameters parameters, CancellationToken cancellationToken);
Пример #3
0
        public Task <IAccessToken> Authenticate(AuthenticationParameters parameters)
        {
            var source = new CancellationTokenSource();

            return(Authenticate(parameters, source.Token));
        }
Пример #4
0
 public abstract bool CanAuthenticate(AuthenticationParameters parameters);
 public bool TryAuthenticate(AuthenticationParameters parameters, out Task <IAccessToken> token)
 {
     return(TryAuthenticate(parameters, AuthenticationCancellationToken, out token));
 }
 public Task <IAccessToken> Authenticate(AuthenticationParameters parameters)
 {
     return(Authenticate(parameters, AuthenticationCancellationToken));
 }
Пример #7
0
 public override bool CanAuthenticate(AuthenticationParameters parameters)
 {
     return(false);
 }
Пример #8
0
 public override Task <IAccessToken> Authenticate(AuthenticationParameters parameters, CancellationToken cancellationToken)
 {
     return(null);
 }