Added HttpClient to Core interface.
This commit is contained in:
parent
60ae74e347
commit
9e9659f71b
2 changed files with 11 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Net.Http;
|
||||
using Observatory.Framework.Files;
|
||||
using Observatory.Framework.Files.Journal;
|
||||
|
||||
|
|
@ -169,5 +170,10 @@ namespace Observatory.Framework.Interfaces
|
|||
/// </summary>
|
||||
/// <param name="action"></param>
|
||||
public void ExecuteOnUIThread(Action action);
|
||||
|
||||
/// <summary>
|
||||
/// Shared application HttpClient object. Provided so that plugins can adhere to .NET recommended behaviour of a single HttpClient object per application.
|
||||
/// </summary>
|
||||
public HttpClient HttpClient { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue