Esempio n. 1
0
        public static void Main()
        {
            Bootstrapper.With.Autofac().With.Ranger().ServiceLocator().With.Start();

            var service = new OwinServiceHost(new Uri("http://localhost:1002/"))
            {
                ServiceName        = "DNS",
                ServiceDisplayName = "DNS Service",
                ServiceDescription = "DNS service"
            };

            service.Initialize();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Bootstrapper.With.Autofac().With.Start();

            var service = new OwinServiceHost(new Uri("http://localhost/"))
            {
                ServiceName        = "NuGet",
                ServiceDisplayName = "NuGet Service",
                ServiceDescription = "NuGet service"
            };

            service.Initialize();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            var uri = new Uri(ConfigurationManager.AppSettings.Get("host"));

            var config = new HttpConfiguration();

            WebApiConfig.Register(config);

            var appFunc = WebApiAdapter.CreateWebApiAppFunc(config);

            var host = new OwinServiceHost(uri, appFunc)
            {
                ServiceDescription = "Hypermedia driven Conference API",
                ServiceName        = "ConferenceApi",
                ServiceDisplayName = "Conference API"
            };

            host.Initialize();
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Trace.Listeners.Add(new ConsoleTraceListener());

            var uri = new Uri(ConfigurationManager.AppSettings.Get("host"));

            var config = new HttpConfiguration();
            WebApiConfig.Register(config);
            
            var appFunc = WebApiAdapter.CreateWebApiAppFunc2(config);

            var host = new OwinServiceHost(uri, appFunc)
            {
                ServiceDescription = "Hypermedia driven Conference API",
                ServiceName = "ConferenceApi",
                ServiceDisplayName = "Conference API"
            };

            host.Initialize();
        }