예제 #1
0
 public void Dispose()
 {
     if (provider != null)
     {
         if (provider.Client != null)
         {
             provider.Client.Dispose();
         }
         provider.Client = null;
         provider        = null;
     }
 }
예제 #2
0
 public void Dispose()
 {
     if (provider != null && provider.Client != null)
     {
         provider.Client.Dispose();
     }
     provider = null;
     if (client != null)
     {
         client.Dispose();
     }
     client = null;
 }
예제 #3
0
 public ShortUrlClient(ShortUrlProvider Provider)
 {
     provider = Provider;
 }
예제 #4
0
 public ShortUrlFacade(ShortUrlProvider provider)
 {
     this.provider = provider;
     client        = ShortUrlClientFactory.Create(provider);
 }