Skip to content

Commit

Permalink
'IHttpClient' now inherits from 'IDisposable'
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Nov 23, 2016
1 parent 4c0ee38 commit 98a4b9c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Serilog.Sinks.Http/Sinks/Http/IHttpClient.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System.Net.Http;
using System;
using System.Net.Http;
using System.Threading.Tasks;

namespace Serilog.Sinks.Http
{
/// <summary>
/// Interface responsible for posting HTTP requests.
/// </summary>
public interface IHttpClient
public interface IHttpClient : IDisposable
{
/// <summary>
/// Sends a POST request to the specified Uri as an asynchronous operation.
Expand All @@ -15,11 +16,5 @@ public interface IHttpClient
/// <param name="content">The HTTP request content sent to the server.</param>
/// <returns>The task object representing the asynchronous operation.</returns>
Task<HttpResponseMessage> PostAsync(string requestUri, HttpContent content);

/// <summary>
/// Releases the unmanaged resources and disposes of the managed resources used by the
/// <see cref="IHttpClient"/>.
/// </summary>
void Dispose();
}
}

0 comments on commit 98a4b9c

Please sign in to comment.