Table of Contents

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

name string

The name of the topic.

clientConfig ClientConfig

The 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

name string

The name of the topic.

bootstrapServers string

The bootstrap servers string used to identify the target broker.

Returns

IInMemoryTopic

The in-memory topic.