Exemple #1
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            if (serverLink != null)
            {
                ServiceManager.Instance.RemoveServiceServerLinkAsync(serverLink);
                serverLink.Dispose();
                serverLink = null;
            }
        }
Exemple #2
0
 internal void RemoveServiceServerLinkAsync(IServiceServerLink link)
 {
     lock (gate)
     {
         serviceServerLinksAsync.Remove(link);
     }
     link.Dispose();
 }