山东雷驰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
852 B

using System.Collections.Generic;
using System.Threading.Tasks;
namespace Kean.Domain.Stock.SharedServices.Proxies
{
/// <summary>
/// 任务域代理
/// </summary>
public sealed class MessageProxy
{
private readonly IDomain _domain; // 域
/// <summary>
/// 依赖注入
/// </summary>
public MessageProxy(IDomain domain) =>
_domain = domain;
/// <summary>
/// 发送站内消息
/// </summary>
public System.Threading.Tasks.Task SendMessage(
string subject,
int source,
IEnumerable<int> targets,
string content) =>
_domain["Message"].SharedService["SendMessage"].Invoke(
subject,
source,
targets,
content);
}
}