Exemplo n.º 1
0
        public async Task <bool> ValidateUrl(OauthEndpoint endpoint, string url)
        {
            Uri uri     = new Uri(url);
            Uri baseUri = new Uri(endpoint.ClientBaseUrl);

            if (baseUri.IsBaseOf(uri))
            {
                return(await Task.FromResult(true));
            }
            else
            {
                return(await Task.FromResult(false));
            }
        }
Exemplo n.º 2
0
 public Task Update(OauthEndpoint endpoint)
 {
     throw new NotImplementedException();
 }