3using Byond.TopicSender;
5using Microsoft.Extensions.Logging;
15 readonly ILogger<TopicClient>?
logger;
23 ArgumentNullException.ThrowIfNull(
logger);
26 if (
logger.IsEnabled(LogLevel.Trace))
35 ConnectTimeout = timeout,
36 DisconnectTimeout = timeout,
37 ReceiveTimeout = timeout,
38 SendTimeout = timeout,
TopicClientFactory(ILogger< TopicClient > logger)
Initializes a new instance of the TopicClientFactory class.
ITopicClient CreateTopicClient(TimeSpan timeout)
Create a ITopicClient. A new ITopicClient.
readonly? ILogger< TopicClient > logger
The ILogger for created ITopicClients.
Factory for ITopicClients.