Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23009/Spring.Scheduling.Quartz.Example
Added Files:
App.config ExampleJob.cs Program.cs
Spring.Scheduling.Quartz.Example.2003.csproj
Spring.Scheduling.Quartz.Example.2005.csproj
spring-objects.xml
Log Message:
Some fixes to tests, added small Quartz Integration example
--- NEW FILE: Spring.Scheduling.Quartz.Example.2005.csproj ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: Program.cs ---
using System;
using Spring.Context.Support;
namespace Spring.Scheduling.Quartz.Example
{
class Program
{
static void Main()
{
try
{
XmlApplicationContext ctx = new XmlApplicationContext("spring-objects.xml");
Console.WriteLine("Spring configuration succeeded.");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Console.ReadLine();
}
}
}
--- NEW FILE: spring-objects.xml ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: Spring.Scheduling.Quartz.Example.2003.csproj ---
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.6030"
SchemaVersion = "2.0"
ProjectGuid = "{0C0D8C65-90DE-4914-9940-4C684C54971B}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "Spring.Scheduling.Quartz.Example"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Exe"
PreBuildEvent = ""
PostBuildEvent = "cmd /c copy $(ProjectDir)spring-objects.xml $(OutDir)
cmd /c copy $(ProjectDir)App.config $(OutDir)Spring.Scheduling.Quartz.Example.exe.config"
RootNamespace = "Spring"
RunPostBuildEvent = "OnBuildSuccess"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = "Spring.Scheduling.Quartz.Example.xml"
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "..\..\..\..\build\VS.NET.2003\Spring.Scheduling.Quartz.Example\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "true"
OutputPath = "..\..\..\..\build\VS.NET.2003\Spring.Scheduling.Quartz.Example\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/>
<Reference
Name = "Spring.Core"
AssemblyName = "Spring.Core"
HintPath = "..\..\..\..\lib\net\1.1\Spring.Core.dll"
/>
<Reference
Name = "Common.Logging"
AssemblyName = "Common.Logging"
HintPath = "..\..\..\..\lib\net\1.1\Common.Logging.dll"
/>
<Reference
Name = "Quartz"
AssemblyName = "Quartz"
HintPath = "..\..\..\..\lib\net\1.1\Quartz.dll"
/>
<Reference
Name = "Nullables"
AssemblyName = "Nullables"
HintPath = "..\..\..\..\lib\net\1.1\Nullables.dll"
/>
<Reference
Name = "Spring.Scheduling.Quartz.2003"
Project = "{0C0D8C65-90DE-4914-9940-4C684C54971B}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "App.config"
BuildAction = "Content"
/>
<File
RelPath = "ExampleJob.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "Program.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "spring-objects.xml"
BuildAction = "Content"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>
--- NEW FILE: ExampleJob.cs ---
using System;
using Quartz;
using Spring.Scheduling.Quartz;
namespace Spring.Scheduling.Quartz.Example
{
/// <summary>
/// Example job.
/// </summary>
public class ExampleJob : QuartzJobObject
{
private int timeout;
/// <summary>
/// Simple property that can be injected.
/// </summary>
public int Timeout
{
set { timeout = value; }
}
/// <summary>
/// Execute.
/// </summary>
/// <param name="context"></param>
protected override void ExecuteInternal(JobExecutionContext context)
{
Console.WriteLine("{0}: ExecuteInternal called, timeout: {1}", DateTime.Now, timeout);
}
/// <summary>
/// Custom job execution method.
/// </summary>
public void DoIt()
{
Console.WriteLine("{0}: DoIt called, timeout: {1}", DateTime.Now, timeout);
}
}
}
--- NEW FILE: App.config ---
<?xml version="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Common.Logging" publicKeyToken="AF08829B84F0328E" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
|