public void Initialise() { mService = new Microservice(); //mService. mService.Start(); }
static void Main(string[] args) { var config = new MicroserviceConfiguration { Name = "VigilantChainsaw.Animal", Port = "3579", ConfigureApplicationContainer = c => { c.Register <IAnimalService, AnimalService>().AsSingleton(); } }; Microservice.Start(config); }
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); }