public void Dispose() { if (provider != null && provider.Client != null) { provider.Client.Dispose(); } provider = null; if (client != null) { client.Dispose(); } client = null; }
public ShortUrlFacade(ShortUrlProvider provider) { this.provider = provider; client = ShortUrlClientFactory.Create(provider); }