public void AssertProducerIsReady(IEventProducer producer) { // if it doesn't know the context Id, then it's broken if (producer.GetContextId() != this.Id) { throw new ApplicationException($"Producer: {producer} is not ready."); } }