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(); }
protected override void OnStop() { _municipalityTaxHost.Close(); }