using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Session;
///
/// The single-instance : there is no other instance to reach.
///
public sealed class NullPodMessageBus : IPodMessageBus
{
///
/// Gets the shared instance.
///
public static NullPodMessageBus Instance { get; } = new NullPodMessageBus();
///
public string PodId => PodIdentity.Current;
///
public Task RequestAsync(string targetPod, PodMessage message, CancellationToken cancellationToken = default)
=> Task.FromResult(false);
///
public void Subscribe(Func> handler)
{
}
}