Click here to Skip to main content
14,422,431 members

Design and Architecture

 
AnswerRe: Send Purchase Order and Verify Email Pin
phil.o14-May-19 6:12
mvephil.o14-May-19 6:12 
GeneralRe: Send Purchase Order and Verify Email Pin
Richard Deeming14-May-19 8:35
communityengineerRichard Deeming14-May-19 8:35 
GeneralRe: Send Purchase Order and Verify Email Pin
phil.o14-May-19 9:30
mvephil.o14-May-19 9:30 
GeneralRe: Send Purchase Order and Verify Email Pin
Kevin Marois14-May-19 10:06
professionalKevin Marois14-May-19 10:06 
GeneralRe: Send Purchase Order and Verify Email Pin
jschell18-May-19 7:59
Memberjschell18-May-19 7:59 
GeneralRe: Send Purchase Order and Verify Email Pin
phil.o18-May-19 8:19
mvephil.o18-May-19 8:19 
Questionn-Tier Architecture and Async Pin
Kevin Marois10-May-19 7:07
professionalKevin Marois10-May-19 7:07 
AnswerRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 7:46
communityengineerRichard Deeming10-May-19 7:46 
Using Task.Factory.StartNew just to push the work onto a background thread seems like a code-smell.

Ideally, the code should be async all the way down:
// BL:
public async Task<List<EmployeeEntity>> GetAllEmployees()
{
    return await _dal.GetAllEmployees();
}

If there's a compelling reason blocking you from making the DAL async, then you're not gaining anything by making the BL async. Just have a synchronous BL, and a synchronous controller method. The client can still make an async request to your API.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 8:18
professionalKevin Marois10-May-19 8:18 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 10:02
communityengineerRichard Deeming10-May-19 10:02 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 10:10
professionalKevin Marois10-May-19 10:10 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 10:50
communityengineerRichard Deeming10-May-19 10:50 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 11:08
professionalKevin Marois10-May-19 11:08 
GeneralRe: n-Tier Architecture and Async Pin
Richard Deeming10-May-19 12:05
communityengineerRichard Deeming10-May-19 12:05 
GeneralRe: n-Tier Architecture and Async Pin
Nathan Minier10-May-19 8:32
professionalNathan Minier10-May-19 8:32 
GeneralRe: n-Tier Architecture and Async Pin
Kevin Marois10-May-19 8:36
professionalKevin Marois10-May-19 8:36 
QuestionLookup Editor Design Question Pin
Kevin Marois27-Apr-19 8:28
professionalKevin Marois27-Apr-19 8:28 
AnswerRe: Lookup Editor Design Question Pin
Mycroft Holmes27-Apr-19 14:29
MemberMycroft Holmes27-Apr-19 14:29 
GeneralRe: Lookup Editor Design Question Pin
Kevin Marois27-Apr-19 14:44
professionalKevin Marois27-Apr-19 14:44 
GeneralRe: Lookup Editor Design Question Pin
Mycroft Holmes27-Apr-19 14:49
MemberMycroft Holmes27-Apr-19 14:49 
GeneralRe: Lookup Editor Design Question Pin
Kevin Marois27-Apr-19 14:57
professionalKevin Marois27-Apr-19 14:57 
GeneralRe: Lookup Editor Design Question Pin
Eddy Vluggen28-Apr-19 2:09
mveEddy Vluggen28-Apr-19 2:09 
QuestionJ2EE or the other stuff. Pin
abmv22-Apr-19 8:35
professionalabmv22-Apr-19 8:35 
AnswerRe: J2EE or the other stuff. Pin
Eddy Vluggen22-Apr-19 9:00
mveEddy Vluggen22-Apr-19 9:00 
AnswerRe: J2EE or the other stuff. Pin
Gerry Schmitz22-Apr-19 9:30
mveGerry Schmitz22-Apr-19 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.