示例#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);
 }