Example #1
0
        public void Initialise()
        {
            mService = new Microservice();

            //mService.
            mService.Start();
        }
Example #2
0
        static void Main(string[] args)
        {
            var config = new MicroserviceConfiguration
            {
                Name = "VigilantChainsaw.Animal",
                Port = "3579",
                ConfigureApplicationContainer = c =>
                {
                    c.Register <IAnimalService, AnimalService>().AsSingleton();
                }
            };

            Microservice.Start(config);
        }
Example #3
0
        static void Main(string[] args)
        {
            var config = new MicroserviceConfiguration
            {
                Name = "VigilantChainsaw.Zoo",
                Port = "3580",
                ConfigureApplicationContainer = c =>
                {
                    c.Register <IServiceHelper, ServiceHelper>().AsSingleton();
                    c.Register <IZooService, ZooService>().AsSingleton();
                }
            };

            Microservice.Start(config);
        }