jezell / iserviceoriented

This URL has Read+Write access

iserviceoriented / IServiceOriented.ServiceBus / UnhandledMessageFilter.cs
100644 41 lines (34 sloc) 1.018 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
using System.Runtime.Serialization;
 
namespace IServiceOriented.ServiceBus
{
    /// <summary>
    /// Instructs the service bus to send unhandled messages of a certain type to this endpoint.
    /// </summary>
[DataContract]
    public class UnhandledMessageFilter : TypedMessageFilter
    {
        public UnhandledMessageFilter(Type messageType)
            : base(messageType)
        {
        }
 
        public UnhandledMessageFilter(params Type[] messageTypes) : base(messageTypes)
        {
        }
 
        public UnhandledMessageFilter(bool inherit, Type messageType)
            : base(inherit, messageType)
        {
        }
 
        public UnhandledMessageFilter(bool inherit, params Type[] messageTypes)
            : base(inherit, messageTypes)
        {
        }
        
        public override bool Include(PublishRequest request)
        {
            return base.Include(request);
        }
    }
}