Helper class to receive the api key from the sensorberg plattform or validate it.
示例#1
0
 /// <summary>
 /// Check for ApiKey validation.
 /// </summary>
 public async Task<bool> CheckApiKeysValid()
 {
     ApiKeyHelper helper = new ApiKeyHelper();
     return IsApiKeyValid = await helper.ValidateApiKey(null) == ApiKeyValidationResult.Valid;
 }
示例#2
0
        /// <summary>
        /// Check for ApiKey validation.
        /// </summary>
        public async Task <bool> CheckApiKeysValid()
        {
            ApiKeyHelper helper = new ApiKeyHelper();

            return(IsApiKeyValid = await helper.ValidateApiKey(null) == ApiKeyValidationResult.Valid);
        }