Esempio n. 1
0
        protected override IZone CreateZone(String zoneId, String zoneUrl, AgentProperties props)
        {
            TestZoneImpl zone = new TestZoneImpl(zoneId, zoneUrl, fAgent, props);

             zone.Proto = new InMemoryProtocolHandler();
             return zone;
        }
Esempio n. 2
0
        protected override IZone CreateZone(String zoneId, String zoneUrl, AgentProperties props)
        {
            TestZoneImpl zone = new TestZoneImpl(zoneId, zoneUrl, fAgent, props);

            zone.Proto = new InMemoryProtocolHandler();
            return(zone);
        }
        public virtual void Setup()
        {
            Adk.Initialize(SifVersion.LATEST, SIFVariant.SIF_US, (int)SdoLibraryType.All );
            //uses transportplugin interface , and factory method Createthat
            //returns new instance of class we're looking for
            TransportPlugin tp = new InMemoryTransportPlugin();
            Adk.Install( tp );
            fAgent = new TestAgent();
            fAgent.Initialize();
            fAgent.Properties.TransportProtocol = tp.Protocol;

            //createzone added To ZoneFactoryImpl
            fZone =  (TestZoneImpl)fAgent.ZoneFactory.GetInstance( "test", TEST_URL );
        }
Esempio n. 4
0
        public virtual void Setup()
        {
            Adk.Initialize(SifVersion.LATEST, SIFVariant.SIF_US, (int)SdoLibraryType.All );
            //uses transportplugin interface , and factory method Createthat
            //returns new instance of class we're looking for 
            TransportPlugin tp = new InMemoryTransportPlugin();
            Adk.Install( tp );
            fAgent = new TestAgent();
            fAgent.Initialize();
            fAgent.Properties.TransportProtocol = tp.Protocol;

            //createzone added To ZoneFactoryImpl
            fZone =  (TestZoneImpl)fAgent.ZoneFactory.GetInstance( "test", TEST_URL );
        } //end method Setup