Browse files

QRTZNET-240: Simplify Quartz Server with Topshelf

  • Loading branch information...
1 parent bae700c commit 25006aeeb7ca32a7c051f3937f80e0049c29cde8 @lahma lahma committed Jan 9, 2011
Showing with 311 additions and 1,058 deletions.
  1. +2 −14 Quartz.Server.2008.sln
  2. +1 −13 Quartz.Server.2010.sln
  3. BIN lib/other/Topshelf.dll
  4. +174 −0 lib/other/Topshelf.license.txt
  5. +0 −55 server/Quartz.Server.Console/Program.cs
  6. +0 −136 server/Quartz.Server.Console/Quartz.Server.Console.2008.csproj
  7. +0 −167 server/Quartz.Server.Console/Quartz.Server.Console.2010.csproj
  8. +0 −39 server/Quartz.Server.Service/App.config
  9. +0 −22 server/Quartz.Server.Service/Program.cs
  10. +0 −155 server/Quartz.Server.Service/Quartz.Server.Service.2008.csproj
  11. +0 −187 server/Quartz.Server.Service/Quartz.Server.Service.2010.csproj
  12. +0 −66 server/Quartz.Server.Service/QuartzService.cs
  13. +0 −42 server/Quartz.Server.Service/QuartzService.resx
  14. +0 −130 server/Quartz.Server.Service/QuartzServiceInstaller.cs
  15. 0 server/{Quartz.Server.Console → Quartz.Server}/App.config
  16. +1 −1 server/{Quartz.Server.Core → Quartz.Server}/Configuration.cs
  17. +1 −1 server/{Quartz.Server.Core → Quartz.Server}/IQuartzServer.cs
  18. +45 −0 server/Quartz.Server/Program.cs
  19. +26 −9 server/{Quartz.Server.Core/Quartz.Server.Core.2008.csproj → Quartz.Server/Quartz.Server.2008.csproj}
  20. +27 −8 server/{Quartz.Server.Core/Quartz.Server.Core.2010.csproj → Quartz.Server/Quartz.Server.2010.csproj}
  21. +17 −3 server/{Quartz.Server.Core → Quartz.Server}/QuartzServer.cs
  22. +1 −2 server/{Quartz.Server.Core → Quartz.Server}/QuartzServerFactory.cs
  23. +1 −1 server/{Quartz.Server.Core → Quartz.Server}/SampleJob.cs
  24. 0 server/{Quartz.Server.Core → Quartz.Server}/quartz.config
  25. +1 −1 server/{Quartz.Server.Core → Quartz.Server}/quartz_jobs.xml
  26. +14 −6 src/AssemblyInfo.cs
View
16 Quartz.Server.2008.sln
@@ -1,12 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Core.2008", "server\Quartz.Server.Core\Quartz.Server.Core.2008.csproj", "{09082B9A-906C-4A17-A2E5-6C947DAC7C85}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.2008", "server\Quartz.Server\Quartz.Server.2008.csproj", "{09082B9A-906C-4A17-A2E5-6C947DAC7C85}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Console.2008", "server\Quartz.Server.Console\Quartz.Server.Console.2008.csproj", "{1C4A3DBB-C5A7-4A42-BD91-5362972A769B}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Service.2008", "server\Quartz.Server.Service\Quartz.Server.Service.2008.csproj", "{CF9B4A78-C688-40B3-B53A-20C963A6F138}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.2005", "src\Quartz\Quartz.2008.csproj", "{AEF8823B-E45B-4B35-A4D0-C08C1196D017}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.2008", "src\Quartz\Quartz.2008.csproj", "{AEF8823B-E45B-4B35-A4D0-C08C1196D017}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -18,14 +14,6 @@ Global
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Release|Any CPU.Build.0 = Release|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Release|Any CPU.Build.0 = Release|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Release|Any CPU.Build.0 = Release|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Release|Any CPU.ActiveCfg = Release|Any CPU
View
14 Quartz.Server.2010.sln
@@ -1,10 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Core.2010", "server\Quartz.Server.Core\Quartz.Server.Core.2010.csproj", "{09082B9A-906C-4A17-A2E5-6C947DAC7C85}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Console.2010", "server\Quartz.Server.Console\Quartz.Server.Console.2010.csproj", "{1C4A3DBB-C5A7-4A42-BD91-5362972A769B}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.Service.2010", "server\Quartz.Server.Service\Quartz.Server.Service.2010.csproj", "{CF9B4A78-C688-40B3-B53A-20C963A6F138}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.Server.2010", "server\Quartz.Server\Quartz.Server.2010.csproj", "{09082B9A-906C-4A17-A2E5-6C947DAC7C85}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Quartz.2010", "src\Quartz\Quartz.2010.csproj", "{AEF8823B-E45B-4B35-A4D0-C08C1196D017}"
EndProject
@@ -18,14 +14,6 @@ Global
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{09082B9A-906C-4A17-A2E5-6C947DAC7C85}.Release|Any CPU.Build.0 = Release|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1C4A3DBB-C5A7-4A42-BD91-5362972A769B}.Release|Any CPU.Build.0 = Release|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CF9B4A78-C688-40B3-B53A-20C963A6F138}.Release|Any CPU.Build.0 = Release|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEF8823B-E45B-4B35-A4D0-C08C1196D017}.Release|Any CPU.ActiveCfg = Release|Any CPU
View
BIN lib/other/Topshelf.dll
Binary file not shown.
View
174 lib/other/Topshelf.license.txt
@@ -0,0 +1,174 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
View
55 server/Quartz.Server.Console/Program.cs
@@ -1,55 +0,0 @@
-using System;
-
-using Quartz.Server.Core;
-
-namespace Quartz.Server.Console
-{
- /// <summary>
- /// Main entry point for Quartz.NET console server.
- /// </summary>
- class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- IQuartzServer server;
- try
- {
- server = QuartzServerFactory.CreateServer();
- server.Initialize();
- server.Start();
- }
- catch (Exception e)
- {
- System.Console.Write("Error starting server: " + e.Message);
- System.Console.WriteLine(e.ToString());
- System.Console.WriteLine("Hit any key to close");
- System.Console.Read();
- return;
- }
-
- System.Console.WriteLine(Environment.NewLine);
- System.Console.WriteLine("The scheduler will now run until you type \"exit\"");
- System.Console.WriteLine(" If it was configured to export itself via remoting,");
- System.Console.WriteLine(" then other process may now use it.");
- System.Console.WriteLine();
-
- while (true)
- {
- System.Console.WriteLine("Type 'exit' to shutdown the server: ");
- if ("exit".Equals(System.Console.ReadLine()))
- {
- break;
- }
- }
-
- System.Console.WriteLine(Environment.NewLine + "...Shutting down server...");
-
- server.Stop();
-
- }
- }
-}
View
136 server/Quartz.Server.Console/Quartz.Server.Console.2008.csproj
@@ -1,136 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <ProjectType>Local</ProjectType>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{1C4A3DBB-C5A7-4A42-BD91-5362972A769B}</ProjectGuid>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Console</AssemblyName>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
- <OutputType>Exe</OutputType>
- <RootNamespace>Quartz.Server.Console</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <OldToolsVersion>2.0</OldToolsVersion>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Debug\Quartz.Server.Console\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;DEBUG;C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>true</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>full</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Release\Quartz.Server.Console\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>none</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Common.Logging, Version=1.2.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
- </Reference>
- <Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
- </Reference>
- <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\other\log4net.dll</HintPath>
- <Private>True</Private>
- </Reference>
- <Reference Include="System">
- <Name>System</Name>
- </Reference>
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data">
- <Name>System.Data</Name>
- </Reference>
- <Reference Include="System.Xml">
- <Name>System.XML</Name>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\Quartz.Server.Core\quartz_jobs.xml">
- <Link>quartz_jobs.xml</Link>
- </Content>
- <Compile Include="..\AssemblyInfo.cs">
- <Link>AssemblyInfo.cs</Link>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Program.cs">
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <None Include="..\Quartz.Server.Core\quartz.config">
- <Link>quartz.config</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Quartz.Server.Core\Quartz.Server.Core.2008.csproj">
- <Project>{09082B9A-906C-4A17-A2E5-6C947DAC7C85}</Project>
- <Name>Quartz.Server.Core.2008</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>cmd /c copy /y $(ProjectDir)..\Quartz.Server.Core\quartz_jobs.xml $(TargetDir)</PostBuildEvent>
- </PropertyGroup>
-</Project>
View
167 server/Quartz.Server.Console/Quartz.Server.Console.2010.csproj
@@ -1,167 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <ProjectType>Local</ProjectType>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{1C4A3DBB-C5A7-4A42-BD91-5362972A769B}</ProjectGuid>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Console</AssemblyName>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
- <OutputType>Exe</OutputType>
- <RootNamespace>Quartz.Server.Console</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <OldToolsVersion>3.5</OldToolsVersion>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <TargetFrameworkProfile />
- <PublishUrl>publish\</PublishUrl>
- <Install>true</Install>
- <InstallFrom>Disk</InstallFrom>
- <UpdateEnabled>false</UpdateEnabled>
- <UpdateMode>Foreground</UpdateMode>
- <UpdateInterval>7</UpdateInterval>
- <UpdateIntervalUnits>Days</UpdateIntervalUnits>
- <UpdatePeriodically>false</UpdatePeriodically>
- <UpdateRequired>false</UpdateRequired>
- <MapFileExtensions>true</MapFileExtensions>
- <ApplicationRevision>0</ApplicationRevision>
- <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
- <IsWebBootstrapper>false</IsWebBootstrapper>
- <UseApplicationTrust>false</UseApplicationTrust>
- <BootstrapperEnabled>true</BootstrapperEnabled>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Debug\Quartz.Server.Console\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;DEBUG;NET_40,C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>true</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>full</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Release\Quartz.Server.Console\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;NET_40,C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>none</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Common.Logging, Version=1.2.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
- </Reference>
- <Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
- </Reference>
- <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\other\log4net.dll</HintPath>
- <Private>True</Private>
- </Reference>
- <Reference Include="System">
- <Name>System</Name>
- </Reference>
- <Reference Include="System.Data">
- <Name>System.Data</Name>
- </Reference>
- <Reference Include="System.Xml">
- <Name>System.XML</Name>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Content Include="..\Quartz.Server.Core\quartz_jobs.xml">
- <Link>quartz_jobs.xml</Link>
- </Content>
- <Compile Include="..\AssemblyInfo.cs">
- <Link>AssemblyInfo.cs</Link>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Program.cs">
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <None Include="..\Quartz.Server.Core\quartz.config">
- <Link>quartz.config</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
- <Install>false</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
- <Visible>False</Visible>
- <ProductName>Windows Installer 3.1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Quartz.Server.Core\Quartz.Server.Core.2010.csproj">
- <Project>{09082B9A-906C-4A17-A2E5-6C947DAC7C85}</Project>
- <Name>Quartz.Server.Core.2010</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>cmd /c copy /y $(ProjectDir)..\Quartz.Server.Core\quartz_jobs.xml $(TargetDir)</PostBuildEvent>
- </PropertyGroup>
-</Project>
View
39 server/Quartz.Server.Service/App.config
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <configSections>
- <section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
- <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
- <sectionGroup name="common">
- <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
- </sectionGroup>
- </configSections>
-
- <common>
- <logging>
- <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">
- <arg key="configType" value="INLINE" />
- </factoryAdapter>
- </logging>
- </common>
-
- <log4net>
- <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
- <layout type="log4net.Layout.PatternLayout">
- <conversionPattern value="%d [%t] %-5p %l - %m%n" />
- </layout>
- </appender>
- <root>
- <level value="INFO" />
- <appender-ref ref="EventLogAppender" />
- </root>
- </log4net>
-
- <!--
- We use quartz.properties for this server, you can always use configuration section if you want to
- Configuration section has precedence here.
- -->
- <!--
- <quartz >
- </quartz>
- -->
-</configuration>
View
22 server/Quartz.Server.Service/Program.cs
@@ -1,22 +0,0 @@
-using System.ServiceProcess;
-
-namespace Quartz.Server.Service
-{
- /// <summary>
- /// Summary description for Program.
- /// </summary>
- public class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main()
- {
- ServiceBase[] ServicesToRun;
-
- ServicesToRun = new ServiceBase[] { new QuartzService() };
-
- ServiceBase.Run(ServicesToRun);
- }
- }
-}
View
155 server/Quartz.Server.Service/Quartz.Server.Service.2008.csproj
@@ -1,155 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <PropertyGroup>
- <ProjectType>Local</ProjectType>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{CF9B4A78-C688-40B3-B53A-20C963A6F138}</ProjectGuid>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Service</AssemblyName>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
- <OutputType>WinExe</OutputType>
- <RootNamespace>Quartz.Server.Service</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <OldToolsVersion>2.0</OldToolsVersion>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Debug\Quartz.Server.Service\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;DEBUG;C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>true</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>full</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Release\Quartz.Server.Service\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>none</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
- </Reference>
- <Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
- </Reference>
- <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\other\log4net.dll</HintPath>
- <Private>True</Private>
- </Reference>
- <Reference Include="System">
- <Name>System</Name>
- </Reference>
- <Reference Include="System.Configuration.Install">
- <Name>System.Configuration.Install</Name>
- </Reference>
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data">
- <Name>System.Data</Name>
- </Reference>
- <Reference Include="System.Management">
- <Name>System.Management</Name>
- </Reference>
- <Reference Include="System.ServiceProcess">
- <Name>System.ServiceProcess</Name>
- </Reference>
- <Reference Include="System.Xml">
- <Name>System.XML</Name>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\AssemblyInfo.cs">
- <Link>AssemblyInfo.cs</Link>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Program.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="QuartzService.cs">
- <SubType>Component</SubType>
- </Compile>
- <Compile Include="QuartzServiceInstaller.cs">
- <SubType>Component</SubType>
- </Compile>
- <Content Include="..\Quartz.Server.Core\quartz_jobs.xml">
- <Link>quartz_jobs.xml</Link>
- </Content>
- <EmbeddedResource Include="QuartzService.resx">
- <DependentUpon>QuartzService.cs</DependentUpon>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <None Include="..\Quartz.Server.Core\quartz.config">
- <Link>quartz.config</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Quartz.Server.Core\Quartz.Server.Core.2008.csproj">
- <Project>{09082B9A-906C-4A17-A2E5-6C947DAC7C85}</Project>
- <Name>Quartz.Server.Core.2008</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>cmd /c copy /y $(ProjectDir)..\Quartz.Server.Core\quartz_jobs.xml $(TargetDir)</PostBuildEvent>
- </PropertyGroup>
-</Project>
View
187 server/Quartz.Server.Service/Quartz.Server.Service.2010.csproj
@@ -1,187 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
- <PropertyGroup>
- <ProjectType>Local</ProjectType>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{CF9B4A78-C688-40B3-B53A-20C963A6F138}</ProjectGuid>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ApplicationIcon>
- </ApplicationIcon>
- <AssemblyKeyContainerName>
- </AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Service</AssemblyName>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- <DefaultClientScript>JScript</DefaultClientScript>
- <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
- <DefaultTargetSchema>IE50</DefaultTargetSchema>
- <DelaySign>false</DelaySign>
- <OutputType>WinExe</OutputType>
- <RootNamespace>Quartz.Server.Service</RootNamespace>
- <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
- <StartupObject>
- </StartupObject>
- <FileUpgradeFlags>
- </FileUpgradeFlags>
- <UpgradeBackupLocation>
- </UpgradeBackupLocation>
- <OldToolsVersion>3.5</OldToolsVersion>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <TargetFrameworkProfile />
- <PublishUrl>publish\</PublishUrl>
- <Install>true</Install>
- <InstallFrom>Disk</InstallFrom>
- <UpdateEnabled>false</UpdateEnabled>
- <UpdateMode>Foreground</UpdateMode>
- <UpdateInterval>7</UpdateInterval>
- <UpdateIntervalUnits>Days</UpdateIntervalUnits>
- <UpdatePeriodically>false</UpdatePeriodically>
- <UpdateRequired>false</UpdateRequired>
- <MapFileExtensions>true</MapFileExtensions>
- <ApplicationRevision>0</ApplicationRevision>
- <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
- <IsWebBootstrapper>false</IsWebBootstrapper>
- <UseApplicationTrust>false</UseApplicationTrust>
- <BootstrapperEnabled>true</BootstrapperEnabled>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Debug\Quartz.Server.Service\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;DEBUG;NET_40,C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>true</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>false</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>full</DebugType>
- <ErrorReport>prompt</ErrorReport>
- <PlatformTarget>x64</PlatformTarget>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Release\Quartz.Server.Service\</OutputPath>
- <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
- <BaseAddress>285212672</BaseAddress>
- <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
- <ConfigurationOverrideFile>
- </ConfigurationOverrideFile>
- <DefineConstants>TRACE;NET_40,C5</DefineConstants>
- <DocumentationFile>
- </DocumentationFile>
- <DebugSymbols>false</DebugSymbols>
- <FileAlignment>4096</FileAlignment>
- <NoStdLib>false</NoStdLib>
- <NoWarn>
- </NoWarn>
- <Optimize>true</Optimize>
- <RegisterForComInterop>false</RegisterForComInterop>
- <RemoveIntegerChecks>false</RemoveIntegerChecks>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
- <WarningLevel>4</WarningLevel>
- <DebugType>none</DebugType>
- <ErrorReport>prompt</ErrorReport>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
- </Reference>
- <Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
- </Reference>
- <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\lib\other\log4net.dll</HintPath>
- <Private>True</Private>
- </Reference>
- <Reference Include="System">
- <Name>System</Name>
- </Reference>
- <Reference Include="System.Configuration.Install">
- <Name>System.Configuration.Install</Name>
- </Reference>
- <Reference Include="System.Data">
- <Name>System.Data</Name>
- </Reference>
- <Reference Include="System.Management">
- <Name>System.Management</Name>
- </Reference>
- <Reference Include="System.ServiceProcess">
- <Name>System.ServiceProcess</Name>
- </Reference>
- <Reference Include="System.Xml">
- <Name>System.XML</Name>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="..\AssemblyInfo.cs">
- <Link>AssemblyInfo.cs</Link>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Program.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="QuartzService.cs">
- <SubType>Component</SubType>
- </Compile>
- <Compile Include="QuartzServiceInstaller.cs">
- <SubType>Component</SubType>
- </Compile>
- <Content Include="..\Quartz.Server.Core\quartz_jobs.xml">
- <Link>quartz_jobs.xml</Link>
- </Content>
- <EmbeddedResource Include="QuartzService.resx">
- <DependentUpon>QuartzService.cs</DependentUpon>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <None Include="..\Quartz.Server.Core\quartz.config">
- <Link>quartz.config</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
- <Install>false</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
- <Visible>False</Visible>
- <ProductName>Windows Installer 3.1</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Quartz.Server.Core\Quartz.Server.Core.2010.csproj">
- <Project>{09082B9A-906C-4A17-A2E5-6C947DAC7C85}</Project>
- <Name>Quartz.Server.Core.2010</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
- <PostBuildEvent>cmd /c copy /y $(ProjectDir)..\Quartz.Server.Core\quartz_jobs.xml $(TargetDir)</PostBuildEvent>
- </PropertyGroup>
-</Project>
View
66 server/Quartz.Server.Service/QuartzService.cs
@@ -1,66 +0,0 @@
-using System.ServiceProcess;
-
-using Common.Logging;
-
-using Quartz.Server.Core;
-
-namespace Quartz.Server.Service
-{
- /// <summary>
- /// Main windows service to delegate calls to <see cref="IQuartzServer" />.
- /// </summary>
- public class QuartzService : ServiceBase
- {
- private readonly ILog logger;
- private readonly IQuartzServer server;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="QuartzService"/> class.
- /// </summary>
- public QuartzService()
- {
- logger = LogManager.GetLogger(GetType());
-
- logger.Debug("Obtaining instance of an IQuartzServer");
- server = QuartzServerFactory.CreateServer();
-
- logger.Debug("Initializing server");
- server.Initialize();
- logger.Debug("Server initialized");
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if(disposing)
- {
- logger.Debug("Disposing service");
- server.Dispose();
- logger.Debug("Service disposed");
- }
- base.Dispose( disposing );
- }
-
- /// <summary>
- /// Set things in motion so your service can do its work.
- /// </summary>
- protected override void OnStart(string[] args)
- {
- logger.Debug("Starting service");
- server.Start();
- logger.Debug("Service started");
- }
-
- /// <summary>
- /// Stop this service.
- /// </summary>
- protected override void OnStop()
- {
- logger.Debug("Stopping service");
- server.Stop();
- logger.Debug("Service stopped");
- }
- }
-}
View
42 server/Quartz.Server.Service/QuartzService.resx
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<root>
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="ResMimeType">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="Version">
- <value>1.0.0.0</value>
- </resheader>
- <resheader name="Reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="Writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root>
View
130 server/Quartz.Server.Service/QuartzServiceInstaller.cs
@@ -1,130 +0,0 @@
-using System;
-using System.Collections;
-using System.ComponentModel;
-using System.Configuration.Install;
-using System.ServiceProcess;
-
-using Common.Logging;
-
-using Microsoft.Win32;
-
-using Quartz.Server.Core;
-
-namespace Quartz.Server.Service
-{
- /// <summary>
- /// Service installer for the Quartz server.
- /// </summary>
- [RunInstaller(true)]
- public class QuartzServiceInstaller : Installer
- {
- private ServiceProcessInstaller serviceProcessInstaller;
- private ServiceInstaller serviceInstaller;
- private static readonly ILog logger = LogManager.GetLogger(typeof(QuartzServiceInstaller));
-
- public QuartzServiceInstaller()
- {
- Console.WriteLine("fasfafasfa");
-
- // This call is required by the Designer.
- InitializeComponent();
-
- serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
-
- serviceInstaller.ServiceName = Configuration.ServiceName;
- serviceInstaller.DisplayName = Configuration.ServiceDisplayName;
-
- }
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- }
- base.Dispose( disposing );
- }
-
-
- /// <summary>
- /// Overriden to get more control over service installation.
- /// </summary>
- /// <param name="stateServer"></param>
- public override void Install(IDictionary stateServer)
- {
- RegistryKey system;
-
- //HKEY_LOCAL_MACHINE\Services\CurrentControlSet
- RegistryKey currentControlSet;
-
- //...\Services
- RegistryKey services;
-
- //...\<Service Name>
- RegistryKey service;
-
- // ...\Parameters - this is where you can put service-specific configuration
- // Microsoft.Win32.RegistryKey config;
-
- try
- {
- Console.WriteLine("1");
- //Let the project installer do its job
- base.Install(stateServer);
-
- Console.WriteLine("2");
- //Open the HKEY_LOCAL_MACHINE\SYSTEM key
- system = Registry.LocalMachine.OpenSubKey("System");
- //Open CurrentControlSet
- Console.WriteLine("3");
- currentControlSet = system.OpenSubKey("CurrentControlSet");
- //Go to the services key
- services = currentControlSet.OpenSubKey("Services");
-
- Console.WriteLine("4");
- //Open the key for your service, and allow writing
- service = services.OpenSubKey(serviceInstaller.ServiceName, true);
- Console.WriteLine("5");
- //Add your service's description as a REG_SZ value named "Description"
- service.SetValue("Description", Configuration.ServiceDescription);
- Console.WriteLine("6");
- //(Optional) Add some custom information your service will use...
- // config = service.CreateSubKey("Parameters");
- }
- catch (Exception e)
- {
- logger.Error("Error installing Quartz service: " + e.Message, e);
- throw;
- }
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.serviceProcessInstaller = new System.ServiceProcess.ServiceProcessInstaller();
- this.serviceInstaller = new System.ServiceProcess.ServiceInstaller();
- //
- // serviceProcessInstaller
- //
- this.serviceProcessInstaller.Password = null;
- this.serviceProcessInstaller.Username = null;
- //
- // ProjectInstaller
- //
- this.Installers.AddRange(new System.Configuration.Install.Installer[]
- {
- this.serviceProcessInstaller,
- this.serviceInstaller
- });
- }
-
- #endregion
- }
-}
View
0 server/Quartz.Server.Console/App.config → server/Quartz.Server/App.config
File renamed without changes.
View
2 server/Quartz.Server.Core/Configuration.cs → server/Quartz.Server/Configuration.cs
@@ -1,7 +1,7 @@
using System.Collections.Specialized;
using System.Configuration;
-namespace Quartz.Server.Core
+namespace Quartz.Server
{
/// <summary>
/// Configuration for the Quartz server.
View
2 server/Quartz.Server.Core/IQuartzServer.cs → server/Quartz.Server/IQuartzServer.cs
@@ -1,6 +1,6 @@
using System;
-namespace Quartz.Server.Core
+namespace Quartz.Server
{
/// <summary>
/// Service interface for core Quartz.NET server.
View
45 server/Quartz.Server/Program.cs
@@ -0,0 +1,45 @@
+using Topshelf;
+using Topshelf.Configuration;
+using Topshelf.Configuration.Dsl;
+
+namespace Quartz.Server
+{
+ /// <summary>
+ /// The server's main entry point.
+ /// </summary>
+ public static class Program
+ {
+ /// <summary>
+ /// Main.
+ /// </summary>
+ /// <param name="args"></param>
+ public static void Main(string[] args)
+ {
+ RunConfiguration cfg = RunnerConfigurator.New(x =>
+ {
+ x.ConfigureService<QuartzServer>(s =>
+ {
+ s.Named("quartz.server");
+ s.HowToBuildService(builder =>
+ {
+ QuartzServer server = new QuartzServer();
+ server.Initialize();
+ return server;
+ });
+ s.WhenStarted(server => server.Start());
+ s.WhenPaused(server => server.Pause());
+ s.WhenContinued(server => server.Resume());
+ s.WhenStopped(server => server.Stop());
+ });
+ x.RunAsLocalSystem();
+
+ x.SetDescription(Configuration.ServiceDescription);
+ x.SetDisplayName(Configuration.ServiceDisplayName);
+ x.SetServiceName(Configuration.ServiceName);
+ });
+
+ Runner.Host(cfg, args);
+ }
+
+ }
+}
View
35 ...erver.Core/Quartz.Server.Core.2008.csproj → ...r/Quartz.Server/Quartz.Server.2008.csproj
@@ -10,15 +10,15 @@
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Core</AssemblyName>
+ <AssemblyName>Quartz.Server</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <OutputType>Library</OutputType>
- <RootNamespace>Quartz.Server.Core</RootNamespace>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>Quartz.Server</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
@@ -30,14 +30,14 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Debug\Quartz.Server.Core\</OutputPath>
+ <OutputPath>..\..\build\3.5\Debug\Quartz.Server\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG;C5</DefineConstants>
- <DocumentationFile>..\..\build\3.5\Debug\Quartz.Server.Core\Quartz.Server.Core.XML</DocumentationFile>
+ <DocumentationFile>..\..\build\3.5\Debug\Quartz.Server\Quartz.Server.XML</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
@@ -52,14 +52,14 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\3.5\Release\Quartz.Server.Core\</OutputPath>
+ <OutputPath>..\..\build\3.5\Release\Quartz.Server\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;C5</DefineConstants>
- <DocumentationFile>..\..\build\3.5\Release\Quartz.Server.Core\Quartz.Server.Core.XML</DocumentationFile>
+ <DocumentationFile>..\..\build\3.5\Release\Quartz.Server\Quartz.Server.XML</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
@@ -78,9 +78,14 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
</Reference>
+ <Reference Include="Common.Logging.Log4Net, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
+ </Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\other\log4net.dll</HintPath>
+ <Private>True</Private>
</Reference>
<Reference Include="System">
<Name>System</Name>
@@ -95,9 +100,18 @@
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
+ <Reference Include="Topshelf, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\other\Topshelf.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
- <None Include="quartz.config" />
+ <None Include="App.config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="quartz.config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
<Compile Include="..\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
<SubType>Code</SubType>
@@ -106,12 +120,15 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="IQuartzServer.cs" />
+ <Compile Include="Program.cs" />
<Compile Include="QuartzServer.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="QuartzServerFactory.cs" />
<Compile Include="SampleJob.cs" />
- <Content Include="quartz_jobs.xml" />
+ <Content Include="quartz_jobs.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Quartz\Quartz.2008.csproj">
View
35 ...erver.Core/Quartz.Server.Core.2010.csproj → ...r/Quartz.Server/Quartz.Server.2010.csproj
@@ -11,15 +11,15 @@
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
- <AssemblyName>Quartz.Server.Core</AssemblyName>
+ <AssemblyName>Quartz.Server</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <OutputType>Library</OutputType>
- <RootNamespace>Quartz.Server.Core</RootNamespace>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>Quartz.Server</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
@@ -47,14 +47,14 @@
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Debug\Quartz.Server.Core\</OutputPath>
+ <OutputPath>..\..\build\4.0\Debug\Quartz.Server\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG;NET_40,C5</DefineConstants>
- <DocumentationFile>..\..\build\4.0\Debug\Quartz.Server.Core\Quartz.Server.Core.XML</DocumentationFile>
+ <DocumentationFile>..\..\build\4.0\Debug\Quartz.Server\Quartz.Server.XML</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
@@ -69,7 +69,7 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <OutputPath>..\..\build\4.0\Release\Quartz.Server.Core\</OutputPath>
+ <OutputPath>..\..\build\4.0\Release\Quartz.Server\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
@@ -96,6 +96,14 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\2.0\Common.Logging.dll</HintPath>
</Reference>
+ <Reference Include="Common.Logging.Log4Net">
+ <HintPath>..\..\lib\2.0\Common.Logging.Log4Net.dll</HintPath>
+ </Reference>
+ <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\lib\other\log4net.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
@@ -106,10 +114,19 @@
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
+ <Reference Include="Topshelf">
+ <HintPath>..\..\lib\other\Topshelf.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
+ <Compile Include="Program.cs" />
<Compile Include="SampleJob.cs" />
- <None Include="quartz.config" />
+ <None Include="App.config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
+ <None Include="quartz.config">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </None>
<Compile Include="..\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
<SubType>Code</SubType>
@@ -122,7 +139,9 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="QuartzServerFactory.cs" />
- <Content Include="quartz_jobs.xml" />
+ <Content Include="quartz_jobs.xml">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
View
20 server/Quartz.Server.Core/QuartzServer.cs → server/Quartz.Server/QuartzServer.cs
@@ -1,11 +1,9 @@
using System;
using System.Threading;
-
using Common.Logging;
-
using Quartz.Impl;
-namespace Quartz.Server.Core
+namespace Quartz.Server
{
/// <summary>
/// The main server logic.
@@ -103,5 +101,21 @@ public virtual void Dispose()
{
// no-op for now
}
+
+ /// <summary>
+ /// Pauses all activity in scheudler.
+ /// </summary>
+ public virtual void Pause()
+ {
+ scheduler.PauseAll();
+ }
+
+ /// <summary>
+ /// Resumes all acitivity in server.
+ /// </summary>
+ public void Resume()
+ {
+ scheduler.ResumeAll();
+ }
}
}
View
3 ...Quartz.Server.Core/QuartzServerFactory.cs → server/Quartz.Server/QuartzServerFactory.cs
@@ -1,8 +1,7 @@
using System;
-
using Common.Logging;
-namespace Quartz.Server.Core
+namespace Quartz.Server
{
/// <summary>
/// Factory class to create Quartz server implementations from.
View
2 server/Quartz.Server.Core/SampleJob.cs → server/Quartz.Server/SampleJob.cs
@@ -2,7 +2,7 @@
using System.Threading;
using Common.Logging;
-namespace Quartz.Server.Core
+namespace Quartz.Server
{
/// <summary>
/// A sample job that just prints info on console for demostration purposes.
View
0 server/Quartz.Server.Core/quartz.config → server/Quartz.Server/quartz.config
File renamed without changes.
View
2 server/Quartz.Server.Core/quartz_jobs.xml → server/Quartz.Server/quartz_jobs.xml
@@ -14,7 +14,7 @@
<name>sampleJob</name>
<group>sampleGroup</group>
<description>Sample job for Quartz Server</description>
- <job-type>Quartz.Server.Core.SampleJob, Quartz.Server.Core</job-type>
+ <job-type>Quartz.Server.SampleJob, Quartz.Server</job-type>
<durable>true</durable>
<recover>false</recover>
</job>
View
20 src/AssemblyInfo.cs
@@ -3,12 +3,24 @@
using System.Runtime.InteropServices;
#if NET_40
+#if DEBUG
+[assembly: AssemblyConfiguration("net-4.0.win32; Debug")]
+#else
[assembly: AssemblyConfiguration("net-4.0.win32; Release")]
+#endif
+#else
+#if DEBUG
+[assembly: AssemblyConfiguration("net-3.5.win32; Debug")]
#else
[assembly: AssemblyConfiguration("net-3.5.win32; Release")]
#endif
+#endif
-[assembly: AssemblyProduct("Quarz.NET 2.0")]
+#if NET_40
+[assembly: AssemblyProduct("Quarz.NET 2.0 for .NET 4.0")]
+#else
+[assembly: AssemblyProduct("Quarz.NET 2.0 for .NET 3.5 SP1")]
+#endif
[assembly: AssemblyDescription("Quartz Scheduling Framework for .NET")]
[assembly: AssemblyCompany("http://quartznet.sourceforge.net/")]
[assembly: AssemblyCopyright("Copyright 2001-2010 Terracotta Inc. and partially Marko Lahma")]
@@ -17,11 +29,7 @@
[assembly: CLSCompliant(true)]
[assembly: ComVisible(false)]
-#if NET_40
-[assembly: AssemblyVersion("2.0.0.4")]
-#else
-[assembly: AssemblyVersion("2.0.0.3")]
-#endif
+[assembly: AssemblyVersion("2.0.0.*")]
#if STRONG
[assembly: AssemblyDelaySign(false)]

0 comments on commit 25006ae

Please sign in to comment.