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.Messages;
11 :
12 : namespace Cqrs.Configuration
13 : {
14 : /// <summary>
15 : /// Information about a <see cref="IHandler"/> delegate.
16 : /// </summary>
17 : public class HandlerDelegate : HandlerDelegate<dynamic>
18 : {
19 : }
20 :
21 : /// <summary>
22 : /// Information about a delegate.
23 : /// </summary>
24 : public class HandlerDelegate<T>
25 2 : {
26 : /// <summary>
27 : /// The delegate that gets executed.
28 : /// </summary>
29 : public Action<T> Delegate { get; set; }
30 :
31 : /// <summary>
32 : /// The <see cref="Type"/> of the targeted object that <see cref="Delegate"/> operates on.
33 : /// </summary>
34 : public Type TargetedType { get; set; }
35 : }
36 : }
|