2 // System.Runtime.Remoting.Channels.ChannelServices.cs
4 // Author: Rodrigo Moya (rodrigo@ximian.com)
6 // 2002 (C) Copyright, Ximian, Inc.
9 using System.Collections;
10 using System.Runtime.Remoting.Messaging;
12 namespace System.Runtime.Remoting.Channels
14 public sealed class ChannelServices
16 private static ArrayList registeredChannels = new ArrayList ();
18 public static IChannel[] RegisteredChannels
21 IChannel[] channels = new IChannel[registeredChannels.Count];
23 for (int i = 0; i < registeredChannels.Count; i++)
24 channels[i] = (IChannel) registeredChannels[i];
31 public static IMessageCtrl AsyncDispatchMessage (IMessage msg,
32 IMessageSink replySink)
34 throw new NotImplementedException ();
38 public static IServerChannelSink CreateServerChannelSinkChain (
39 IServerChannelSinkProvider provider,
40 IChannelReceiver channel)
42 throw new NotImplementedException ();
46 public static ServerProcessing DispatchMessage (
47 IServerChannelSinkStack sinkStack,
49 out IMessage replyMsg)
51 throw new NotImplementedException ();
55 public static IChannel GetChannel (string name)
57 throw new NotImplementedException ();
61 public static IDictionary GetChannelSinkProperties (object obj)
63 throw new NotImplementedException ();
67 public static string[] GetUrlsForObject (MarshalByRefObject obj)
69 throw new NotImplementedException ();
72 public static void RegisterChannel (IChannel chnl)
74 registeredChannels.Add ((object) chnl);
78 public static IMessage SyncDispatchMessage (IMessage msg)
80 throw new NotImplementedException ();
83 public static void UnregisterChannel (IChannel chnl)
86 throw new ArgumentNullException ();
87 if (!registeredChannels.Contains ((object) chnl))
88 throw new RemotingException ();
90 registeredChannels.Remove ((object) chnl);