protected virtual RemoteServiceErrorInfo GetErrorInfo(UserExceptionInformerContext context) { return(ExceptionToErrorInfoConverter.Convert(context.Exception, options => { options.SendExceptionsDetailsToClients = Options.SendExceptionsDetailsToClients; options.SendStackTraceToClients = Options.SendStackTraceToClients; })); }
public async Task InformAsync(UserExceptionInformerContext context) { var errorInfo = GetErrorInfo(context); if (errorInfo.Details.IsNullOrEmpty()) { await MessageService.Error(errorInfo.Message); } else { await MessageService.Error(errorInfo.Details, errorInfo.Message); } }
public void Inform(UserExceptionInformerContext context) { //TODO: Create sync versions of the MessageService APIs. var errorInfo = GetErrorInfo(context); if (errorInfo.Details.IsNullOrEmpty()) { MessageService.Error(errorInfo.Message); } else { MessageService.Error(errorInfo.Details, errorInfo.Message); } }
protected virtual RemoteServiceErrorInfo GetErrorInfo(UserExceptionInformerContext context) { return(ExceptionToErrorInfoConverter.Convert(context.Exception, Options.SendExceptionsDetailsToClients)); }
public void Inform(UserExceptionInformerContext context) { }
public Task InformAsync(UserExceptionInformerContext context) { return(Task.CompletedTask); }