コード例 #1
0
        public void SelfHostTest()
        {
            Daenet.DurableTaskMicroservices.Host.Host host = new Daenet.DurableTaskMicroservices.Host.Host();

            host.StartServiceHost(Path.Combine(AppContext.BaseDirectory, "TestConfiguration"));

            Thread.Sleep(int.MaxValue); //TODO
        }
コード例 #2
0
        public void SelfHostWithLoggingTest()
        {
            ILoggerFactory loggerFactory = new LoggerFactory();

            loggerFactory.AddDebug();

            Daenet.DurableTaskMicroservices.Host.Host host = new Daenet.DurableTaskMicroservices.Host.Host(loggerFactory);

            host.StartServiceHost(Path.Combine(AppContext.BaseDirectory, "TestConfiguration"));

            Thread.Sleep(int.MaxValue);
        }