markus / ConvertService / ServiceBase / JobScheduler / Program.cs @ 03960fa5
이력 | 보기 | 이력해설 | 다운로드 (831 Bytes)
1 |
using log4net; |
---|---|
2 |
using Markus.Service.Convert.Plugin; |
3 |
using Markus.Service.Extensions; |
4 |
using Markus.Service.Helper; |
5 |
using System; |
6 |
using System.Collections.Generic; |
7 |
using System.Linq; |
8 |
using System.Text; |
9 |
using System.Threading.Tasks; |
10 |
|
11 |
namespace JobScheduler |
12 |
{ |
13 |
class Program |
14 |
{ |
15 |
static void Main(string[] args) |
16 |
{ |
17 |
log4net.Config.BasicConfigurator.Configure(); |
18 |
log4net.ILog log = log4net.LogManager.GetLogger(typeof(Program)); |
19 |
|
20 |
try |
21 |
{ |
22 |
Markus.Service.PluginService.Run(""); |
23 |
} |
24 |
catch (Exception ex) |
25 |
{ |
26 |
log.Error(ex.Message); |
27 |
|
28 |
if (ex.InnerException != null) |
29 |
{ |
30 |
log.Error(ex.InnerException.ToString()); |
31 |
} |
32 |
} |
33 |
} |
34 |
} |
35 |
} |