private TokenManager GetTokenManager() { TokenManager manager; manager = credential.IsInstance() ? new TokenManager(ServiceName, credential) : new TokenManager(ServiceName, UserName, Password); return(manager); }