public ShortUrlReceive Receive() { try { string content = provider.Content(); return(ShortUrlReceiveFactory.Create(content, provider.Url.AbsoluteUri, provider.Provider)); } catch (WebException ex) { throw ex; } }
public async Task <ShortUrlReceive> ReceiveAsync() { try { string content = await provider.ContentAsync(); return(ShortUrlReceiveFactory.Create(content, provider.Url.AbsoluteUri, provider.Provider)); } catch (WebException ex) { throw ex; } }