Menu

[r14]: / trunk / ASON.VSWSLS.Server / Dispatchers.cs  Maximize  Restore  History

Download this file

63 lines (52 with data), 1.8 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// Copyright (c) 2006 Jonas Andreasson (jonas.m.andreasson@gmail.com)
//
// This file is part of Very Simple Winows Syslog Service.
//
// Very Simple Winows Syslog Service is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Very Simple Winows Syslog Service is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Very Simple Winows Syslog Service; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// Subversion information
//
// $Date$
// $Revision$
// $Author$
// $HeadURL$
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace ASON.VSWSLS.Server
{
class Dispatchers : IDispatcher
{
private List<IDispatcher> _list;
public Dispatchers(XmlDocument config)
{
_list = new List<IDispatcher>();
}
#region IDispatcher Members
bool IDispatcher.DispatchMessage(LogMessage msg)
{
foreach (IDispatcher disp in _list)
{
if (!disp.DispatchMessage(msg))
return false; // No more processing of the message should be done.
}
return true;
}
#endregion
}
}
MongoDB Logo MongoDB