using System.Collections.Generic; using System.Net; namespace ETModel { public class LockInfo { public IPEndPoint Address; public ETTaskCompletionSource Tcs; public LockInfo(IPEndPoint address, ETTaskCompletionSource tcs) { this.Address = address; this.Tcs = tcs; } } public class MasterComponent : Component { /// 镜像的地址 public readonly List ghostsAddress = new List(); /// 当前获取锁的进程地址 public IPEndPoint lockedAddress; /// 请求锁的队列 public readonly Queue queue = new Queue(); } }