~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/libsteticui/GuiDispatchServerSinkProvider.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
using System;
 
3
using System.Runtime.Remoting;
 
4
using System.Runtime.Remoting.Channels;
 
5
 
 
6
namespace Stetic
 
7
{
 
8
        public class GuiDispatchServerSinkProvider: IServerFormatterSinkProvider, IServerChannelSinkProvider
 
9
        {
 
10
                private IServerChannelSinkProvider next;
 
11
                
 
12
                public IServerChannelSinkProvider Next {
 
13
                        get { return next;      }
 
14
                        set { next = value; }
 
15
                }
 
16
 
 
17
                public IServerChannelSink CreateSink (IChannelReceiver channel)
 
18
                {
 
19
                        IServerChannelSink chain = next.CreateSink (channel);
 
20
                        GuiDispatchServerSink sink = new GuiDispatchServerSink (chain, channel);
 
21
                        return sink;
 
22
                }
 
23
 
 
24
                public void GetChannelData (IChannelDataStore channelData)
 
25
                {
 
26
                        if(next != null)
 
27
                                next.GetChannelData(channelData);
 
28
                }
 
29
        }
 
30
}