public async Task <bool> PublishAsync <TEntity>(IServiceProvider serviceProvider, PersistentEventType eventType)
        {
            var _event  = new EntityEventTypeArgs(eventType);
            var subject = new PersistentSubject(typeof(TEntity), eventType, _event);

            await subMgr.PublishAsync(subject);

            return(!_event.Cancel);
        }
        public static bool Publish <TEntity>(EntityPersistentEventType eventType)
        {
            var _event  = new EntityEventTypeArgs(eventType);
            var subject = new EntityPersistentSubject(typeof(TEntity), eventType, _event);

            SynchronizedSubscribeManager.Instance.Publish(subject);

            return(!_event.Cancel);
        }
        public bool Publish <TEntity>(IServiceProvider serviceProvider, PersistentEventType eventType)
        {
            var _event  = new EntityEventTypeArgs(eventType);
            var subject = new PersistentSubject(typeof(TEntity), eventType, _event);

            subMgr.Publish(subject);

            AcceptForServiceProvider(serviceProvider, subject);

            return(!_event.Cancel);
        }