프로젝트

일반

사용자정보

개정판 c740ccc7

IDc740ccc7cfc42f778488ca87e3a84be7ccacd5ea
상위 a72d2650
하위 944a39ed

김태성이(가) 약 5년 전에 추가함

JobScheduler 추가

Change-Id: I3a8d3ebf7694eb163b25bd1326abfcaa3814c9e3

차이점 보기:

ConvertService/ServiceBase/DocItemCheck/DocItemCheck.csproj
37 37
    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
38 38
      <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
39 39
    </Reference>
40
    <Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
41
      <HintPath>..\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
42
    </Reference>
40 43
    <Reference Include="Markus.EntityModel, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41 44
      <HintPath>..\packages\MarkusDatabase.1.8.0\lib\net45\Markus.EntityModel.dll</HintPath>
42 45
    </Reference>
......
66 69
  </ItemGroup>
67 70
  <ItemGroup>
68 71
    <None Include="App.config" />
72
    <Content Include="Log.config">
73
      <SubType>Designer</SubType>
74
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
75
    </Content>
69 76
    <None Include="packages.config" />
70 77
  </ItemGroup>
71 78
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
ConvertService/ServiceBase/DocItemCheck/DocumentItemCheck.cs
1
using Markus.Service.Convert.Plugin;
1
using log4net;
2
using Markus.Service.Convert.Plugin;
2 3
using Markus.Service.Extensions;
3 4
using System;
4 5
using System.Collections.Generic;
......
23 24
        {
24 25
            bool result = true;
25 26

  
26
            gConvertID = ConvertID;
27
            log4net.Config.BasicConfigurator.Configure();
28
            log4net.ILog log = log4net.LogManager.GetLogger(typeof(DocumentItemCheck));
27 29

  
28 30
            try
29 31
            {
......
64 66
                                    };
65 67

  
66 68
                                   (entities as IObjectContextAdapter).ObjectContext.ExecuteStoreQuery<object>("SELECT_CONVERT_INSERT @ID, @PROJECT_NO, @DOCUMENT_URL , @DOCUMENT_ID", param);
69

  
70
                                    log.Warn($"[Insert Convert_Doc] ID : {convertId} / PROJECT_NO : {projctNo} / DOCUMENT_URL : {originalUrl} / DOCUMENT_ID : {documentId} ");
67 71
                                }
68 72
                            }
69 73
                        }
74
                        else
75
                        {
76
                            log.Info($"Document Item Check - Null");
77
                        }
78

  
70 79
                    }
71 80
                }
72 81
                else
......
77 86

  
78 87
            catch (Exception ex)
79 88
            {
89
                log.Error(ex);
80 90
                this.Exception = ex.ToString();
81 91
                result = false;
82 92
            }
ConvertService/ServiceBase/DocItemCheck/Properties/AssemblyInfo.cs
34 34
// [assembly: AssemblyVersion("1.0.*")]
35 35
[assembly: AssemblyVersion("1.0.0.0")]
36 36
[assembly: AssemblyFileVersion("1.0.0.0")]
37
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
ConvertService/ServiceBase/DocItemCheck/packages.config
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<packages>
3 3
  <package id="EntityFramework" version="6.2.0" targetFramework="net45" />
4
  <package id="log4net" version="2.0.8" targetFramework="net45" />
4 5
  <package id="MarkusDatabase" version="1.8.0" targetFramework="net45" developmentDependency="true" />
5 6
</packages>
ConvertService/ServiceBase/JobScheduler/App.config
1
<?xml version="1.0" encoding="utf-8" ?>
2
<configuration>
3
    <startup> 
4
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5
    </startup>
6
</configuration>
ConvertService/ServiceBase/JobScheduler/JobScheduler.csproj
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
  <PropertyGroup>
5
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
    <ProjectGuid>{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}</ProjectGuid>
8
    <OutputType>Exe</OutputType>
9
    <RootNamespace>JobScheduler</RootNamespace>
10
    <AssemblyName>JobScheduler</AssemblyName>
11
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
12
    <FileAlignment>512</FileAlignment>
13
    <Deterministic>true</Deterministic>
14
  </PropertyGroup>
15
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16
    <PlatformTarget>AnyCPU</PlatformTarget>
17
    <DebugSymbols>true</DebugSymbols>
18
    <DebugType>full</DebugType>
19
    <Optimize>false</Optimize>
20
    <OutputPath>..\publish\JobScheduler\</OutputPath>
21
    <DefineConstants>DEBUG;TRACE</DefineConstants>
22
    <ErrorReport>prompt</ErrorReport>
23
    <WarningLevel>4</WarningLevel>
24
  </PropertyGroup>
25
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26
    <PlatformTarget>AnyCPU</PlatformTarget>
27
    <DebugType>pdbonly</DebugType>
28
    <Optimize>true</Optimize>
29
    <OutputPath>bin\Release\</OutputPath>
30
    <DefineConstants>TRACE</DefineConstants>
31
    <ErrorReport>prompt</ErrorReport>
32
    <WarningLevel>4</WarningLevel>
33
  </PropertyGroup>
34
  <ItemGroup>
35
    <Reference Include="ConfigParser, Version=0.3.4.3, Culture=neutral, processorArchitecture=MSIL">
36
      <HintPath>..\packages\Salaros.ConfigParser.0.3.4\lib\net45\ConfigParser.dll</HintPath>
37
    </Reference>
38
    <Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
39
      <HintPath>..\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
40
    </Reference>
41
    <Reference Include="System" />
42
    <Reference Include="System.Core" />
43
    <Reference Include="System.Xml.Linq" />
44
    <Reference Include="System.Data.DataSetExtensions" />
45
    <Reference Include="Microsoft.CSharp" />
46
    <Reference Include="System.Data" />
47
    <Reference Include="System.Net.Http" />
48
    <Reference Include="System.Xml" />
49
  </ItemGroup>
50
  <ItemGroup>
51
    <Compile Include="..\Markus.Service.Convert\Plugin.cs">
52
      <Link>Plugin.cs</Link>
53
    </Compile>
54
    <Compile Include="Program.cs" />
55
    <Compile Include="Properties\AssemblyInfo.cs" />
56
  </ItemGroup>
57
  <ItemGroup>
58
    <None Include="..\Markus.Service.Station\Plugin.ini">
59
      <Link>Plugin.ini</Link>
60
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
61
    </None>
62
    <None Include="App.config" />
63
    <Content Include="Log.config">
64
      <SubType>Designer</SubType>
65
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
66
    </Content>
67
    <None Include="packages.config" />
68
  </ItemGroup>
69
  <ItemGroup>
70
    <ProjectReference Include="..\Markus.Service.Convert.IPlugin\Markus.Service.Convert.IPlugin.csproj">
71
      <Project>{A5BA7325-379C-4CCB-B156-1704FC2175E3}</Project>
72
      <Name>Markus.Service.Convert.IPlugin</Name>
73
    </ProjectReference>
74
    <ProjectReference Include="..\Markus.Service.Extensions\Markus.Service.Extensions.csproj">
75
      <Project>{5F983789-3E8F-4F9A-A601-138C3A83CA5F}</Project>
76
      <Name>Markus.Service.Extensions</Name>
77
    </ProjectReference>
78
  </ItemGroup>
79
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
80
  <PropertyGroup>
81
    <PostBuildEvent>xcopy /y /d /I  "$(ProjectDir)..\publish\Plugin\DocItemCheck.*" "$(ProjectDir)$(OutDir)Plugin"
82
xcopy /y /d /I  "$(ProjectDir)..\publish\Plugin\*Entity*.*" "$(ProjectDir)$(OutDir)Plugin"
83
xcopy /y /d /I  "$(ProjectDir)..\publish\Plugin\log4net*.*" "$(ProjectDir)$(OutDir)Plugin"
84
</PostBuildEvent>
85
  </PropertyGroup>
86
</Project>
ConvertService/ServiceBase/JobScheduler/Log.config
1
<?xml version="1.0" encoding="utf-8"?>
2
<configuration>
3
  <configSections>
4
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
5
  </configSections>
6
  <log4net>
7
    <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
8
      <applicationName value="Markus JobScheduler"/>
9
      <layout type="log4net.Layout.PatternLayout">
10
        <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
11
      </layout>
12
    </appender>
13
    <root>
14
      <level value="All" />
15
      <appender-ref ref="EventLogAppender" />
16
    </root>
17
  </log4net>
18
</configuration>
ConvertService/ServiceBase/JobScheduler/Program.cs
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
}
ConvertService/ServiceBase/JobScheduler/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Runtime.CompilerServices;
3
using System.Runtime.InteropServices;
4

  
5
// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 
6
// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7
// 이러한 특성 값을 변경하세요.
8
[assembly: AssemblyTitle("JobScheduler")]
9
[assembly: AssemblyDescription("")]
10
[assembly: AssemblyConfiguration("")]
11
[assembly: AssemblyCompany("")]
12
[assembly: AssemblyProduct("JobScheduler")]
13
[assembly: AssemblyCopyright("Copyright ©  2020")]
14
[assembly: AssemblyTrademark("")]
15
[assembly: AssemblyCulture("")]
16

  
17
// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 
18
// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
19
// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
20
[assembly: ComVisible(false)]
21

  
22
// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
23
[assembly: Guid("44a14ce4-40b2-4ea4-9f49-9666d05ef08d")]
24

  
25
// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
26
//
27
//      주 버전
28
//      부 버전 
29
//      빌드 번호
30
//      수정 버전
31
//
32
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
33
// 지정되도록 할 수 있습니다.
34
// [assembly: AssemblyVersion("1.0.*")]
35
[assembly: AssemblyVersion("1.0.0.0")]
36
[assembly: AssemblyFileVersion("1.0.0.0")]
37
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log.config", Watch = true)]
ConvertService/ServiceBase/JobScheduler/packages.config
1
<?xml version="1.0" encoding="utf-8"?>
2
<packages>
3
  <package id="log4net" version="2.0.8" targetFramework="net45" />
4
  <package id="Microsoft.CSharp" version="4.5.0" targetFramework="net45" />
5
  <package id="Salaros.ConfigParser" version="0.3.4" targetFramework="net45" />
6
</packages>
ConvertService/ServiceBase/Markus.Service.Station/Plugin.ini
6 6

  
7 7

  
8 8
[DocItemCheck]
9
#MARKUS_ConnectionString = ScTg8MgTdbARVQXhb1K9YI3/6emjnMuODvTWZ+UnUZQ8z/Gv4TksSLRn84HTZiC5/7jdSUr5EUZM30ywChLhQpD7JcUP0OmFolKm/ESAXOyQExjIscSgqZRobsvvTqCJXTB9cMiVyw40ez2n/sz6jEVUlTnXcrgyES00Kne7l1/Vxq1xlZB35sr7iyMcMkAFI6eGTZyU34DfS3t1LQu55A==
9
MARKUS_ConnectionString = ScTg8MgTdbARVQXhb1K9YI3/6emjnMuODvTWZ+UnUZQ8z/Gv4TksSLRn84HTZiC5q/RkHKkgbsc6TL5EdTsnSwK0ngDgXD0P0yPKObgtPfk0MX0wmEG95SDQzGzbT6sH73Lkzde0AeChQWveAWZGvACoQISpdUwNj96c2AQuTqaUHwSkCwSI84HZCYugjlg3gAF1FpPggKCIeu4r/qFi0w==
10 10

  
11 11
#효성
12
MARKUS_ConnectionString = w0RfRwPwWVzkhKYSFkzqaccCbanjnTfSeig1IFc1IQ2MDThANWCNLmZqA6e2emQZqdM0l2Hsk1Ns/1Bfk6Vy+23gcbZlEDSBfSz7+eQaliiW9b2Wes1FDJ/C1Ho+35kTHGBbQk0tlIA0SWQHbR0KFo8TH5AbCyrLkjI87W6iXJVBpfI1QmTK0guIlTPnEEtCzXnXtgY9e8IHVnRIqT1PDs4tqaDsOZxfDGNNdvIpagA=
12
#MARKUS_ConnectionString = w0RfRwPwWVzkhKYSFkzqaccCbanjnTfSeig1IFc1IQ2MDThANWCNLmZqA6e2emQZqdM0l2Hsk1Ns/1Bfk6Vy+23gcbZlEDSBfSz7+eQaliiW9b2Wes1FDJ/C1Ho+35kTHGBbQk0tlIA0SWQHbR0KFo8TH5AbCyrLkjI87W6iXJVBpfI1QmTK0guIlTPnEEtCzXnXtgY9e8IHVnRIqT1PDs4tqaDsOZxfDGNNdvIpagA=
ConvertService/ServiceBase/ServiceBase.sln
115 115
EndProject
116 116
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocItemCheck", "DocItemCheck\DocItemCheck.csproj", "{2F7115C0-6414-46DB-B2E5-C941099B7737}"
117 117
EndProject
118
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JobScheduler", "JobScheduler\JobScheduler.csproj", "{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}"
119
	ProjectSection(ProjectDependencies) = postProject
120
		{2F7115C0-6414-46DB-B2E5-C941099B7737} = {2F7115C0-6414-46DB-B2E5-C941099B7737}
121
	EndProjectSection
122
EndProject
118 123
Global
119 124
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
120 125
		Debug|Any CPU = Debug|Any CPU
......
415 420
		{2F7115C0-6414-46DB-B2E5-C941099B7737}.Release|x64.Build.0 = Release|Any CPU
416 421
		{2F7115C0-6414-46DB-B2E5-C941099B7737}.Release|x86.ActiveCfg = Release|Any CPU
417 422
		{2F7115C0-6414-46DB-B2E5-C941099B7737}.Release|x86.Build.0 = Release|Any CPU
423
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
424
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|Any CPU.Build.0 = Debug|Any CPU
425
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|x64.ActiveCfg = Debug|Any CPU
426
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|x64.Build.0 = Debug|Any CPU
427
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|x86.ActiveCfg = Debug|Any CPU
428
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Debug|x86.Build.0 = Debug|Any CPU
429
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|Any CPU.ActiveCfg = Release|Any CPU
430
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|Any CPU.Build.0 = Release|Any CPU
431
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x64.ActiveCfg = Release|Any CPU
432
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x64.Build.0 = Release|Any CPU
433
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x86.ActiveCfg = Release|Any CPU
434
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D}.Release|x86.Build.0 = Release|Any CPU
418 435
	EndGlobalSection
419 436
	GlobalSection(SolutionProperties) = preSolution
420 437
		HideSolutionNode = FALSE
......
425 442
		{8E4A5DBD-1A40-4D43-A03B-E780ED098E9D} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
426 443
		{F344E7AE-B16E-4736-9816-4BE415418F58} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
427 444
		{2F7115C0-6414-46DB-B2E5-C941099B7737} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
445
		{44A14CE4-40B2-4EA4-9F49-9666D05EF08D} = {38FB29F2-1B34-49E6-873C-9E04F77F7B08}
428 446
	EndGlobalSection
429 447
	GlobalSection(ExtensibilityGlobals) = postSolution
430 448
		SolutionGuid = {CA1BB1E8-1969-4435-A889-37F359B6EAAE}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)