using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Pole.Core.Abstractions { public interface IObserverUnit : IGrainID { /// /// 获取所有监听者分组 /// /// List GetGroups(); Task GetAndSaveVersion(PrimaryKey primaryKey, long srcVersion); /// /// 重置Grain /// /// 重置Grain /// Task Reset(PrimaryKey primaryKey); List> GetEventHandlers(string observerGroup); List> GetAllEventHandlers(); List, Task>> GetBatchEventHandlers(string observerGroup); List, Task>> GetAllBatchEventHandlers(); } }