Exemple #1
0
        public Starter Init()
        {
            serviceHost = DebugInterfaceFactory.Start <DebugInterface, IDebugInterface>(
                (Interface) =>
            {
                Interface.RegisterProperties(
                    c,             //Instance
                    "c",           //Registered name
                    "I", "S"       //Registered properties
                    );
            },
                true               //create a dynamic config (with BasicHttpBinding!!!)
                );

            return(this);
        }
Exemple #2
0
        public Starter Init2()
        {
            serviceHost = DebugInterfaceFactory.Start <DebugInterface, IDebugInterface>(
                (Interface) =>
            {
                Interface.RegisterProperties(
                    c,             //Instance
                    "c",           //Registered name
                    "I", "S"       //Registered properties
                    );
            },
                true,                             //create a dynamic config (with BasicHttpBinding!!!)
                "http://127.0.0.1:9001/SuperTest" //use this URL as the base
                );

            return(this);
        }