-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from martincostello/Add-XML-Documentation
XML documentation updates
- Loading branch information
Showing
15 changed files
with
298 additions
and
89 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
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
16 changes: 13 additions & 3 deletions
16
src/JustEat.StatsD/EndpointLookups/SimpleEndpointSource.cs
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,19 +1,29 @@ | ||
using System; | ||
using System.Net; | ||
|
||
namespace JustEat.StatsD.EndpointLookups | ||
{ | ||
/// <summary> | ||
/// Simple adapter | ||
/// A class representing an implementation of <see cref="IEndPointSource"/> that | ||
/// returns a constant <see cref="EndPoint"/> value. This class cannot be inherited. | ||
/// </summary> | ||
public class SimpleEndpointSource : IEndPointSource | ||
public sealed class SimpleEndpointSource : IEndPointSource | ||
{ | ||
private readonly EndPoint _value; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SimpleEndpointSource"/> class. | ||
/// </summary> | ||
/// <param name="value">The <see cref="EndPoint"/> to use.</param> | ||
/// <exception cref="ArgumentNullException"> | ||
/// <paramref name="value"/> is <see langword="null"/>. | ||
/// </exception> | ||
public SimpleEndpointSource(EndPoint value) | ||
{ | ||
_value = value; | ||
_value = value ?? throw new ArgumentNullException(nameof(value)); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public EndPoint GetEndpoint() => _value; | ||
} | ||
} |
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,9 +1,15 @@ | ||
using System; | ||
using System; | ||
|
||
namespace JustEat.StatsD | ||
{ | ||
/// <summary> | ||
/// Defines a timer which is disposable. | ||
/// </summary> | ||
public interface IDisposableTimer : IDisposable | ||
{ | ||
/// <summary> | ||
/// Gets or sets the name of the statsd bucket associated with the timer. | ||
/// </summary> | ||
string StatName { get; set; } | ||
} | ||
} |
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.