namespace linker.messenger.sforward.client { public interface ISForwardClientStore { /// /// 穿透密钥 /// public string SecretKey { get; } /// /// 设置穿透密钥 /// /// /// public bool SetSecretKey(string key); /// /// 穿透数量 /// /// public int Count(); /// /// 获取穿透列表 /// /// public IEnumerable Get(); /// /// 获取穿透 /// /// /// public SForwardInfo Get(long id); /// /// 获取穿透 /// /// /// public SForwardInfo Get(string domain); /// /// 获取穿透 /// /// /// public SForwardInfo GetPort(int port); /// /// 添加穿透 /// /// /// public bool Add(SForwardInfo info); /// /// 更新穿透 /// /// /// /// /// public bool Update(long id,bool started,string msg); /// /// 更新 /// /// /// /// public bool Update(long id,bool started); /// /// 更新 /// /// /// /// public bool Update(long id,string localMsg); /// /// 删除穿透 /// /// /// public bool Remove(long id); } }