|
@@ -2,8 +2,17 @@ |
|
|
|
|
|
|
|
|
namespace DotNetCore.CAP |
|
|
namespace DotNetCore.CAP |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// publish message excutor. The excutor sends the message to the message queue |
|
|
|
|
|
/// </summary> |
|
|
public interface IPublishExecutor |
|
|
public interface IPublishExecutor |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// publish message to message queue. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <param name="keyName">The message topic name.</param> |
|
|
|
|
|
/// <param name="content">The message content.</param> |
|
|
|
|
|
/// <returns></returns> |
|
|
Task<OperateResult> PublishAsync(string keyName, string content); |
|
|
Task<OperateResult> PublishAsync(string keyName, string content); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |