mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 19:58:57 +08:00
Refactor logger. (#1247)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using MQTTnet.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using MQTTnet.Diagnostics.Logger;
|
||||
|
||||
namespace MQTTnet.Internal
|
||||
{
|
||||
public static class TaskExtensions
|
||||
{
|
||||
public static void RunInBackground(this Task task, IMqttNetScopedLogger logger = null)
|
||||
public static void RunInBackground(this Task task, MqttNetSourceLogger logger = null)
|
||||
{
|
||||
task?.ContinueWith(t =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user