예제 #1
0
        static void Main(string[] args)
        {
            WebHost host = new WebHost();

            host.RegisterComponent <Program>();
            host.UserElasticSearch("test_query_string", "http://192.168.2.19:9200");
            host.UseEFCore <BlogDBContext>();
            host.Setting(o =>
            {
                o.Port         = 80;
                o.LogLevel     = EventArgs.LogType.Info;
                o.LogToConsole = true;
            })
            .Run();
        }