Esempio n. 1
0
        protected override void OnStart(string[] args)
        {
            var provider = Startup.GetProvider();

            Startup.EnsureDatabaseExistance(provider);

            _municipalityTaxHost = new IocServiceHost(provider, typeof(MunicipalityTaxManager));
            _municipalityTaxHost.Open();
        }
        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();
        }