source: xmlrpcnet/trunk/fuentes/src/XmlRpcServerFormatterSinkProvider.cs @ 379

Last change on this file since 379 was 379, checked in by hectorgh, 5 years ago

adding project files

File size: 2.5 KB
Line 
1/*
2XML-RPC.NET library
3Copyright (c) 2001-2006, Charles Cook <charlescook@cookcomputing.com>
4
5Permission is hereby granted, free of charge, to any person
6obtaining a copy of this software and associated documentation
7files (the "Software"), to deal in the Software without restriction,
8including without limitation the rights to use, copy, modify, merge,
9publish, distribute, sublicense, and/or sell copies of the Software,
10and to permit persons to whom the Software is furnished to do so,
11subject to the following conditions:
12
13The above copyright notice and this permission notice shall be
14included in all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23DEALINGS IN THE SOFTWARE.
24*/
25
26using System;
27using System.Collections;
28using System.Runtime.Remoting.Channels;
29
30using CookComputing.XmlRpc;
31
32namespace CookComputing.XmlRpc
33{
34  public class XmlRpcServerFormatterSinkProvider : IServerFormatterSinkProvider
35  {
36    // constructors
37    public XmlRpcServerFormatterSinkProvider(
38      IDictionary properties, 
39      ICollection providerData) 
40    {
41      // can use properties to pass in custom attributes from the config
42      // file which can then be passed to sink constructor as required
43    }
44
45    public XmlRpcServerFormatterSinkProvider()
46    {
47      // can use properties to pass in custom attributes from the config
48      // file which can then be passed to sink constructor as required
49    }
50
51    // properties
52    //
53    public IServerChannelSinkProvider Next
54    {
55      get { return m_next; }
56      set { m_next = value; }
57    }
58
59    // public methods
60    //
61    public IServerChannelSink CreateSink(
62      IChannelReceiver channel)
63    {
64      IServerChannelSink scs = null;
65      if (m_next != null)
66      {
67        scs = m_next.CreateSink(channel);
68      }
69      return new XmlRpcServerFormatterSink(scs);
70    }
71
72    public void GetChannelData(IChannelDataStore channelData)
73    {
74      // TODO: not required???
75    }
76
77    // data
78    //
79    IServerChannelSinkProvider m_next;
80  }
81}
Note: See TracBrowser for help on using the repository browser.