public void Start() { CacheNotify.Subscribe((n) => SendNotifyMessage(n), CacheNotifyAction.InsertOrUpdate); CacheInvoke.Subscribe((n) => InvokeSendMethod(n), CacheNotifyAction.InsertOrUpdate); }
public void Dispose() { CacheNotify.Unsubscribe(CacheNotifyAction.InsertOrUpdate); CacheInvoke.Unsubscribe(CacheNotifyAction.InsertOrUpdate); }