public async Task <string> PublishAsync(string subject, T data) { // init data.TransactionInfo.TransactionId = AddTransaction(subject, data); // update AddPayloadAndHistory(subject, data, data.TransactionInfo.TransactionId); return(await _obs.PublishAsync(subject, data)); }
public async Task <string> PublishAsync(string subject, T data) { try { _log.Trace(new { direction = "Publisher", subject = subject, data = data }); return(await _obs.PublishAsync(subject, data)); } catch (Exception e) { _log.Error(e, e.Message, data); throw; } }