Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (32 sloc) 817 Bytes
using System.Threading.Tasks;
namespace Abp.MqMessages
{
/// <summary>
/// 空模式
/// </summary>
public class NullMqMessagePublisher : IMqMessagePublisher
{
/// <summary>
///
/// </summary>
public static NullMqMessagePublisher Instance { get; } = new NullMqMessagePublisher();
/// <summary>
///
/// </summary>
/// <param name="mqMessages"></param>
/// <returns></returns>
public Task PublishAsync(object mqMessages)
{
//do nothing.
return Task.FromResult(0);
}
/// <summary>
///
/// </summary>
/// <param name="mqMessages"></param>
public void Publish(object mqMessages)
{
//do nothing.
}
}
}
You can’t perform that action at this time.