Skip to content

Commit

Permalink
Merge pull request #10 from MoaidHathot/main
Browse files Browse the repository at this point in the history
Fixing a typo in the name of 'ServerTimigDeliveryMode'
  • Loading branch information
tpeczek authored May 27, 2022
2 parents 1d03137 + 29ff7da commit 0f47c35
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Lib.AspNetCore.ServerTiming/IServerTiming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface IServerTiming
/// <summary>
/// Gets the metrics delivery mode for current request.
/// </summary>
ServerTimigDeliveryMode DeliveryMode { get; }
ServerTimingDeliveryMode DeliveryMode { get; }

/// <summary>
/// Gets the collection of metrics for current request.
Expand Down
2 changes: 1 addition & 1 deletion Lib.AspNetCore.ServerTiming/ServerTiming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Lib.AspNetCore.ServerTiming
internal class ServerTiming : IServerTiming
{
#region Properties
public ServerTimigDeliveryMode DeliveryMode { get; internal set; } = ServerTimigDeliveryMode.Unknown;
public ServerTimingDeliveryMode DeliveryMode { get; internal set; } = ServerTimingDeliveryMode.Unknown;

public ICollection<ServerTimingMetric> Metrics { get; }
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// The metrics delivery mode.
/// </summary>
public enum ServerTimigDeliveryMode
public enum ServerTimingDeliveryMode
{
/// The metrics delivery mode is no yet known.
Unknown,
Expand Down
6 changes: 3 additions & 3 deletions Lib.AspNetCore.ServerTiming/ServerTimingMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private async Task HandleServerTimingAsTrailerHeaderAsync(HttpContext context, I
{
context.Response.DeclareTrailer(HeaderNames.ServerTiming);

serverTiming.SetServerTimingDeliveryMode(ServerTimigDeliveryMode.Trailer);
serverTiming.SetServerTimingDeliveryMode(ServerTimingDeliveryMode.Trailer);

await _next(context);

Expand Down Expand Up @@ -131,8 +131,8 @@ private Task HandleServerTimingAsResponseHeaderAsync(HttpContext context, IServe

return _completedTask;
});
serverTiming.SetServerTimingDeliveryMode(ServerTimigDeliveryMode.ResponseHeader);

serverTiming.SetServerTimingDeliveryMode(ServerTimingDeliveryMode.ResponseHeader);

return _next(context);
}
Expand Down
4 changes: 1 addition & 3 deletions Lib.AspNetCore.ServerTiming/ServerTimingUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ public static void AddMetric(this IServerTiming serverTiming,
serverTiming.Metrics.Add(metric);
}



internal static void SetServerTimingDeliveryMode(this IServerTiming serverTiming, ServerTimigDeliveryMode deliveryMode)
internal static void SetServerTimingDeliveryMode(this IServerTiming serverTiming, ServerTimingDeliveryMode deliveryMode)
{
ServerTiming concreteServerTiming = serverTiming as ServerTiming;

Expand Down

0 comments on commit 0f47c35

Please sign in to comment.