public ModelDerivative(Auth.Token accessToken) { if (accessToken != null && !string.IsNullOrWhiteSpace(accessToken.AccessToken)) { token = accessToken; } }
public OSSRequest(Auth.Token token) { if (token == null || string.IsNullOrWhiteSpace(token.AccessToken) || token.ExpiresAt < DateTime.UtcNow) { throw new Exception("OSS Configuration Error."); } this.token = token; client = new RestClient(); }