private static async Task <AuthenticationResult> RunTask(Task <AuthenticationResult> task) { AuthenticationResult result; try { result = await task; } catch (Exception ex) { result = new AuthenticationResult(ex); } result.ReplaceNullStringPropertiesWithEmptyString(); return(result); }
private static async Task<AuthenticationResult> RunTask(Task<AuthenticationResult> task) { AuthenticationResult result; try { result = await task; } catch (Exception ex) { result = new AuthenticationResult(ex); } result.ReplaceNullStringPropertiesWithEmptyString(); return result; }