public void startWcfHost()
        {
            DI.log.info("in startWcfHost");
            var o2WcfHost = new O2GenericWcfHost <IO2WcfUnitTest>("test_startWcfHost", typeof(KO2WcfUnitTest));

            // create host
            DI.log.info("Starting Host");
            var hostStartedOk = o2WcfHost.startHost();

            Assert.That(hostStartedOk, " hostStartedOk was false");

            DI.log.info("Connecting Client");


            var iO2WcfProxy = o2WcfHost.getClientProxy();

            Assert.That(iO2WcfProxy.allOK(), "iO2WcfProxy.allOK returned false");
            DI.log.info("Sending Message");
            DI.log.info(iO2WcfProxy.helloThere("This is my name"));

            DI.log.info("Closing down host");
            o2WcfHost.stopHost();
            o2WcfHost.hostClosed.WaitOne();
            DI.log.info("Host closed is set, so finishing off test");
            //      Thread.Sleep(10000);
        }
예제 #2
0
 public void createHostAndClientProxy()
 {
     DI.log.info("in startWcfHost");
     o2GenericWcfHost = new O2GenericWcfHost<IWcfUnitTest_SendO2Message>(proxyName, typeof(KWcfUnitTest_SendO2Message));            
     // create host
     DI.log.info("Starting Host");
     var hostStartedOk = o2GenericWcfHost.startHost();
     Assert.That(hostStartedOk, " hostStartedOk was false");
     iO2WcfProxy = o2GenericWcfHost.getClientProxy();
     Assert.That(iO2WcfProxy.allOK(), "iO2WcfProxy.allOK returned false");
 }
예제 #3
0
        public void createHostAndClientProxy()
        {
            DI.log.info("in startWcfHost");
            o2GenericWcfHost = new O2GenericWcfHost <IWcfUnitTest_SendO2Message>(proxyName, typeof(KWcfUnitTest_SendO2Message));
            // create host
            DI.log.info("Starting Host");
            var hostStartedOk = o2GenericWcfHost.startHost();

            Assert.That(hostStartedOk, " hostStartedOk was false");
            iO2WcfProxy = o2GenericWcfHost.getClientProxy();
            Assert.That(iO2WcfProxy.allOK(), "iO2WcfProxy.allOK returned false");
        }
        public void startWcfHost()
        {
            DI.log.info("in startWcfHost");
            var o2WcfHost = new O2GenericWcfHost<IO2WcfUnitTest>("test_startWcfHost", typeof(KO2WcfUnitTest));
            // create host
            DI.log.info("Starting Host");
            var hostStartedOk = o2WcfHost.startHost();
            Assert.That(hostStartedOk, " hostStartedOk was false");

            DI.log.info("Connecting Client");


            var iO2WcfProxy = o2WcfHost.getClientProxy();
            Assert.That(iO2WcfProxy.allOK(), "iO2WcfProxy.allOK returned false");
            DI.log.info("Sending Message");
            DI.log.info(iO2WcfProxy.helloThere("This is my name"));

            DI.log.info("Closing down host");
            o2WcfHost.stopHost();
            o2WcfHost.hostClosed.WaitOne();
            DI.log.info("Host closed is set, so finishing off test");
            //      Thread.Sleep(10000); 
        }
 public static IO2WcfKernelMessage createClientProxy(string o2KernelProcessName)
 {
     var wcfHost = new O2GenericWcfHost<IO2WcfKernelMessage>(o2KernelProcessName, typeof(KO2WcfKernelMessage));
     return wcfHost.getClientProxy();
 }
 public static IO2WcfKernelMessage createClientProxy(O2GenericWcfHost<IO2WcfKernelMessage> wcfHost)
 {
     return wcfHost.getClientProxy();
 }