Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 9b817bf

Browse files
author
Anton Vorontsov
committed
Added summaries for new models. Removed some internals.
1 parent 10b9fb0 commit 9b817bf

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
namespace RabbitMQ.Client.Core.DependencyInjection.Configuration
22
{
3+
/// <summary>
4+
/// An options model that "contains" sections for producing and consuming connections of a RabbitMQ clients
5+
/// <see cref="IQueueService"/>, <see cref="IConsumingService"/> and <see cref="IProducingService"/>.
6+
/// </summary>
37
public class RabbitMqConnectionOptions
48
{
9+
/// <summary>
10+
/// Producer connection.
11+
/// </summary>
512
public RabbitMqClientOptions ProducerOptions { get; set; }
613

14+
/// <summary>
15+
/// Consumer connection.
16+
/// </summary>
717
public RabbitMqClientOptions ConsumerOptions { get; set; }
818
}
919
}

src/RabbitMQ.Client.Core.DependencyInjection/Extensions/BaseMessageHandlerDependencyInjectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal static IServiceCollection AddInstanceSingleton<TInterface, TImplementat
5353
return services;
5454
}
5555

56-
internal static IServiceCollection AddMessageHandlerOrderingModel<TImplementation>(this IServiceCollection services, IEnumerable<string> routePatterns, string exchange, int order)
56+
static IServiceCollection AddMessageHandlerOrderingModel<TImplementation>(this IServiceCollection services, IEnumerable<string> routePatterns, string exchange, int order)
5757
where TImplementation : class
5858
{
5959
MessageHandlerOrderingModelExists<TImplementation>(services, routePatterns, exchange, order);
@@ -68,7 +68,7 @@ internal static IServiceCollection AddMessageHandlerOrderingModel<TImplementatio
6868
return services;
6969
}
7070

71-
internal static void MessageHandlerOrderingModelExists<TImplementation>(IServiceCollection services, IEnumerable<string> routePatterns, string exchange, int order)
71+
static void MessageHandlerOrderingModelExists<TImplementation>(IServiceCollection services, IEnumerable<string> routePatterns, string exchange, int order)
7272
{
7373
var messageHandlerOrderingModel = services.FirstOrDefault(x => x.ServiceType == typeof(MessageHandlerOrderingModel)
7474
&& x.Lifetime == ServiceLifetime.Singleton

src/RabbitMQ.Client.Core.DependencyInjection/Models/RabbitMqConnectionOptionsContainer.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@
33

44
namespace RabbitMQ.Client.Core.DependencyInjection.Models
55
{
6+
/// <summary>
7+
/// A model that contains a link between an instance of message queueing service and its configuration.
8+
/// A queueing service can be of type <see cref="IQueueService"/>, <see cref="IConsumingService"/> or <see cref="IProducingService"/>.
9+
/// </summary>
610
public class RabbitMqConnectionOptionsContainer
711
{
12+
/// <summary>
13+
/// Queueing service identifier.
14+
/// </summary>
815
public Guid Guid { get; set; }
916

17+
/// <summary>
18+
/// Queueing service options container.
19+
/// </summary>
1020
public RabbitMqConnectionOptions Options { get; set; }
1121
}
1222
}

0 commit comments

Comments
 (0)