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