示例#1
0
文件: Hub.cs 项目: S17L/iGP11
        public void Dispose()
        {
            _scheduler.Unsubscribe(_queue);
            _scheduler.Dispose();

            IEnumerable <Endpoint> endpoints;

            lock (_lock)
            {
                endpoints = _endpoints.ToArray();
            }

            foreach (var endpoint in endpoints)
            {
                endpoint.Dispose();
            }
        }
示例#2
0
 public void Dispose()
 {
     _scheduler.Unsubscribe(_queue);
 }