コード例 #1
0
 public void Dispose()
 {
     if (provider != null && provider.Client != null)
     {
         provider.Client.Dispose();
     }
     provider = null;
     if (client != null)
     {
         client.Dispose();
     }
     client = null;
 }
コード例 #2
0
 public ShortUrlFacade(ShortUrlProvider provider)
 {
     this.provider = provider;
     client        = ShortUrlClientFactory.Create(provider);
 }