Пример #1
0
        public IDisposable Subscribe <TPayload>(string[] topics, ISubscription <TPayload> subscription)
        {
            Assert.ArgumentNotNull(subscription, nameof(subscription));
            var token = _store.AddSubscription(topics, subscription);

            _log.Debug($"Adding subscription {subscription.Id} to type Type={typeof(TPayload).FullName}");
            return(token);
        }