public void IEventNotifier <T>(IEventPublisher publisher, T @event) { publisher.Publish(6606, @event); publisher.Publish(6606, @event, DateTime.Now); T[] events = new[] { @event }; publisher.PublishMany(6606, events); publisher.PublishMany(6606, events, DateTime.Now); publisher.ObsoleteAndUnboundedPublishMany(6606, events); publisher.ObsoleteAndUnboundedPublishMany(6606, events, DateTime.Now); }
public void IEventPublisher(IEventPublisher publisher) { GoodEvent @event = new GoodEvent(); publisher.Publish(6606, @event); publisher.Publish(6606, @event, DateTime.Now); GoodEvent[] events = new[] { @event }; publisher.PublishMany(6606, events); publisher.PublishMany(6606, events, DateTime.Now); publisher.ObsoleteAndUnboundedPublishMany(6606, events); publisher.ObsoleteAndUnboundedPublishMany(6606, events, DateTime.Now); }