Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using Cqrs.Azure.ServiceBus;
11 : using Cqrs.Bus;
12 : using Cqrs.Events;
13 : using Ninject.Modules;
14 :
15 : namespace Cqrs.Azure.EventHub.EventBus.Configuration
16 : {
17 : /// <summary>
18 : /// A <see cref="INinjectModule"/> that wires up <see cref="AzureQueuedEventBusReceiver{TAuthenticationToken}"/> as the <see cref="IEventReceiver"/> and other require components.
19 : /// </summary>
20 : /// <typeparam name="TAuthenticationToken">The <see cref="Type"/> of the authentication token.</typeparam>
21 : public class AzureQueuedEventHubReceiverModule<TAuthenticationToken> : AzureEventHubReceiverModule<TAuthenticationToken>
22 1 : {
23 : /// <summary>
24 : /// Register the CQRS event handler registrar
25 : /// </summary>
26 1 : public override void RegisterEventHandlerRegistrar()
27 : {
28 : Bind<IEventHandlerRegistrar>()
29 : .To<AzureQueuedEventBusReceiver<TAuthenticationToken>>()
30 : .InSingletonScope();
31 : }
32 : }
33 : }
|