internal StreamConfiguration GetStreamConfig <T>() { bool streamTypeRegistered = _streams.TryGetValue(typeof(T), out StreamConfiguration config); Check.Requires <EventStoreConfigurationException>( streamTypeRegistered, "Stream type {0} was not configured. Call RegisterStreamType " + "when calling MongoEventStore.Configure.", typeof(T).Name ); return(config); }