private async Task SendToGroupsAsync(ReportLogResult validateResult, ReportLogArgs args, string groupName) { //sendTo: SomeClient,* //永远额外发送给组: * if (groupName == ReportLogConst.AnyClientId) { await this.Clients.Groups(groupName).SendAsync(ReportLogConst.ReportLogCallback, validateResult); } else { await this.Clients.Groups(groupName, ReportLogConst.AnyClientId).SendAsync(ReportLogConst.ReportLogCallback, validateResult); } }
public static ReportLogResult Validate(this ReportLogArgs args) { var validate = ReportLogArgs.Validate(args, out var message); return(ReportLogResult.Create(validate, message, args)); }