Interface IInMemoryTopicCollection
- Namespace
- Silverback.Messaging.Broker.Kafka.Mocks
- Assembly
- Silverback.Integration.Kafka.Testing.dll
The collection of Silverback.Messaging.Broker.Kafka.Mocks.InMemoryTopic being used in the current session.
public interface IInMemoryTopicCollection : IReadOnlyCollection<IInMemoryTopic>, IEnumerable<IInMemoryTopic>, IEnumerable
- Inherited Members
Methods
Get(string, ClientConfig)
Gets the topic with the specified name or creates it on the fly.
IInMemoryTopic Get(string name, ClientConfig clientConfig)
Parameters
namestringThe name of the topic.
clientConfigClientConfigThe client configuration.
Returns
- IInMemoryTopic
The in-memory topic.
Get(string, string)
Gets the topic with the specified name or creates it on the fly.
IInMemoryTopic Get(string name, string bootstrapServers)
Parameters
namestringThe name of the topic.
bootstrapServersstringThe bootstrap servers string used to identify the target broker.
Returns
- IInMemoryTopic
The in-memory topic.