Skip to content

Commit 3b764e4

Browse files
committed
fixed line endings
1 parent 0650b50 commit 3b764e4

37 files changed

+3811
-3811
lines changed

Library/IJob.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
namespace FluentScheduler
2-
{
3-
/// <summary>
4-
/// Some work to be done.
1+
namespace FluentScheduler
2+
{
3+
/// <summary>
4+
/// Some work to be done.
55
/// If you are relying on the library to instantiate the job, make sure you implement a parameterless constructor
6-
/// (else you will be getting a System.MissingMethodException).
7-
/// </summary>
8-
public interface IJob
9-
{
10-
/// <summary>
11-
/// Executes the job.
12-
/// </summary>
13-
void Execute();
14-
}
15-
}
6+
/// (else you will be getting a System.MissingMethodException).
7+
/// </summary>
8+
public interface IJob
9+
{
10+
/// <summary>
11+
/// Executes the job.
12+
/// </summary>
13+
void Execute();
14+
}
15+
}

Library/JobFactory.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
namespace FluentScheduler
2-
{
3-
using System;
4-
using System.Diagnostics.CodeAnalysis;
5-
6-
/// <summary>
7-
/// A job factory.
8-
/// </summary>
9-
public interface IJobFactory
10-
{
11-
/// <summary>
12-
/// Instantiate a job of the given type.
13-
/// </summary>
14-
/// <typeparam name="T">Type of the job to instantiate</typeparam>
15-
/// <returns>The instantiated job</returns>
16-
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter",
17-
Justification = "The 'T' requirement is on purpose.")]
18-
IJob GetJobInstance<T>() where T : IJob;
19-
}
20-
21-
internal class JobFactory : IJobFactory
22-
{
23-
IJob IJobFactory.GetJobInstance<T>()
24-
{
25-
return Activator.CreateInstance<T>();
26-
}
27-
}
28-
}
1+
namespace FluentScheduler
2+
{
3+
using System;
4+
using System.Diagnostics.CodeAnalysis;
5+
6+
/// <summary>
7+
/// A job factory.
8+
/// </summary>
9+
public interface IJobFactory
10+
{
11+
/// <summary>
12+
/// Instantiate a job of the given type.
13+
/// </summary>
14+
/// <typeparam name="T">Type of the job to instantiate</typeparam>
15+
/// <returns>The instantiated job</returns>
16+
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter",
17+
Justification = "The 'T' requirement is on purpose.")]
18+
IJob GetJobInstance<T>() where T : IJob;
19+
}
20+
21+
internal class JobFactory : IJobFactory
22+
{
23+
IJob IJobFactory.GetJobInstance<T>()
24+
{
25+
return Activator.CreateInstance<T>();
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)