static void Main(string[] args)
        {
            var provider = Startup.GetProvider();

            Startup.EnsureDatabaseExistance(provider);

            var MunicipalityTaxHost = new IocServiceHost(provider, typeof(MunicipalityTaxManager));

            MunicipalityTaxHost.Open();

            Console.WriteLine("The host is listening on http://localhost:8733/Design_Time_Addresses/MunicipalityTaxs/");
            Console.ReadLine();

            MunicipalityTaxHost.Close();
        }
Esempio n. 2
0
 protected override void OnStop()
 {
     _municipalityTaxHost.Close();
 }