summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/background/PluginI.cs
blob: 6f78725a696ac9bb80f8fbf185712d526af37a03 (plain)
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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

internal class PluginI : Ice.Plugin
{
    internal PluginI(Ice.Communicator communicator)
    {
        _communicator = communicator;
    }

    public void initialize()
    {
        IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(_communicator);
        for(short s = 0; s < 100; ++s)
        {
            IceInternal.EndpointFactory factory = facade.getEndpointFactory(s);
            if(factory != null)
            {
                facade.addEndpointFactory(new EndpointFactory(factory));
            }
        }
    }

    public void destroy()
    {
    }

    private Ice.Communicator _communicator;
}