Beispiel #1
0
        private static IAuthenticationBehave DefaultFactory(AuthenticationMethodTypes type)
        {
            switch (type)
            {
            case AuthenticationMethodTypes.Bearer:
                return(new BearerAuthenticateBehave());

            case AuthenticationMethodTypes.OpenId:
                return(null);

            default:
                throw new NotSupportedException(type.ToString());
            }
        }
Beispiel #2
0
 public Task <HttpResponseMessage> PutAsync <T>(string uri, T item, AuthenticationMethodTypes authorizationMethod = AuthenticationMethodTypes.Bearer)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public Task <string> GetStringAsync(string uri, AuthenticationMethodTypes authorizationMethod = AuthenticationMethodTypes.Bearer)
 {
     throw new NotImplementedException();
 }