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