-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configures Resharper, StyleCop and the SonarQube analyzers, cleaned up the solution quite a bit, tried to align the code style in a way that seems to suit most team members and aligns closely to the default stylecop rules. Added quite a bit of documentation to commonly used classes. Cleaned up or simplified a lot of complex conditionals.
- Loading branch information
1 parent
c4023ee
commit 2b58250
Showing
83 changed files
with
1,717 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
namespace Aggregator.ConsoleApp | ||
{ | ||
using Aggregator.Core; | ||
using Aggregator.Core.Monitoring; | ||
using Aggregator.Core; | ||
using Aggregator.Core.Monitoring; | ||
|
||
class ConsoleEventLogger : TextLogComposer | ||
namespace Aggregator.ConsoleApp | ||
{ | ||
/// <summary> | ||
/// Logs all events to the console. | ||
/// </summary> | ||
internal class ConsoleEventLogger : TextLogComposer | ||
{ | ||
public ConsoleEventLogger(LogLevel level) | ||
: base(new ConsoleTextLogger(level)) | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConsoleEventLogger"/> class. | ||
/// </summary> | ||
/// <param name="minimumLogLevel">The minimum log level to show.</param> | ||
public ConsoleEventLogger(LogLevel minimumLogLevel) | ||
: base(new ConsoleTextLogger(minimumLogLevel)) | ||
{ } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Aggregator.Core; | ||
using Aggregator.Core.Interfaces; | ||
|
||
namespace Aggregator.ConsoleApp | ||
{ | ||
/// <summary> | ||
/// Notification implementation for the Console Application | ||
/// </summary> | ||
public class Notification : INotification | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Notification"/> class. | ||
/// </summary> | ||
/// <param name="workItemId"> | ||
/// WorkItemId of the work item to load and apply the policy on. | ||
/// </param> | ||
/// <param name="projectName"> | ||
/// The name of the project that holds this work item. | ||
/// </param> | ||
public Notification(int workItemId, string projectName) | ||
{ | ||
this.WorkItemId = workItemId; | ||
this.ProjectUri = projectName; | ||
} | ||
|
||
/// <summary> | ||
/// WorkItemId of the work item to load and apply the policy on. | ||
/// </summary> | ||
public int WorkItemId { get; } | ||
|
||
/// <summary> | ||
/// The name of the project that holds the work item. | ||
/// </summary> | ||
public string ProjectUri { get; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
using ManyConsole; | ||
|
||
class Program | ||
static class Program | ||
{ | ||
static int Main(string[] args) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.