Click here to Skip to main content
15,867,771 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Asp.net display numbers from loop on page Pin
Richard MacCutchan6-Jun-22 4:21
mveRichard MacCutchan6-Jun-22 4:21 
AnswerRe: Asp.net display numbers from loop on page Pin
Dave Kreskowiak7-Jun-22 7:47
mveDave Kreskowiak7-Jun-22 7:47 
Question.NET SDK that provides side by side comparison and navigation in document pages Pin
Member 1564342420-May-22 2:57
Member 1564342420-May-22 2:57 
AnswerRe: .NET SDK that provides side by side comparison and navigation in document pages Pin
Dave Kreskowiak21-May-22 6:04
mveDave Kreskowiak21-May-22 6:04 
QuestionHow to call some Web API inside another Web API within same Project Pin
Wahaj Khan27-Apr-22 10:35
Wahaj Khan27-Apr-22 10:35 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
Mycroft Holmes27-Apr-22 12:36
professionalMycroft Holmes27-Apr-22 12:36 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Wahaj Khan27-Apr-22 13:33
Wahaj Khan27-Apr-22 13:33 
GeneralRe: How to call some Web API inside another Web API within same Project Pin
Pete O'Hanlon29-Apr-22 0:34
subeditorPete O'Hanlon29-Apr-22 0:34 
Wahaj Khan wrote:
Sorry, we need to do this at Web API level
That may not strictly be true though. You might think that you want to do this via Web API, but that is not the same as actually needing to do this via Web APIs.

The proposal here is not a good idea because you have introduced a transactional dependency into your API at this point. Suppose that the API that deletes the record happens successfully, and then calls the second API, which is down. What are you going to do at that point? Undelete the record?

If you are logging things happening at the database, let the database take care of the logging. Alternatively, you need to consider how to cope with failure conditions and look at techniques such as event passing, retry mechanisms, queues and the likes to see if they can help you in this situation.

Bottom line - your current design is borked if it's only relying on happy path scenarios.

AnswerRe: How to call some Web API inside another Web API within same Project Pin
Richard Deeming27-Apr-22 21:16
mveRichard Deeming27-Apr-22 21:16 
AnswerRe: How to call some Web API inside another Web API within same Project Pin
jschell8-May-22 7:47
jschell8-May-22 7:47 
QuestionConsole App that refer an external dll Pin
Skeletro 3M15-Apr-22 0:12
Skeletro 3M15-Apr-22 0:12 
AnswerRe: Console App that refer an external dll Pin
Bohdan Stupak26-Jul-22 23:55
professionalBohdan Stupak26-Jul-22 23:55 
QuestionBackgroundWorker [closed] Pin
hshan_7-Apr-22 8:30
hshan_7-Apr-22 8:30 
AnswerRe: BackgroundWorker Pin
Richard Deeming7-Apr-22 21:30
mveRichard Deeming7-Apr-22 21:30 
GeneralRe: BackgroundWorker Pin
hshan_10-Apr-22 5:29
hshan_10-Apr-22 5:29 
GeneralRe: BackgroundWorker Pin
Richard Deeming18-Apr-22 21:42
mveRichard Deeming18-Apr-22 21:42 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 2:38
hshan_19-Apr-22 2:38 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 3:01
mveRichard Deeming19-Apr-22 3:01 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 3:22
hshan_19-Apr-22 3:22 
GeneralRe: BackgroundWorker Pin
Richard Deeming19-Apr-22 3:50
mveRichard Deeming19-Apr-22 3:50 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 6:39
hshan_19-Apr-22 6:39 
GeneralRe: BackgroundWorker Pin
hshan_19-Apr-22 2:55
hshan_19-Apr-22 2:55 
QuestionCan not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 4:23
Alex Banar1-Apr-22 4:23 
AnswerRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan1-Apr-22 4:38
mveRichard MacCutchan1-Apr-22 4:38 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 4:42
Alex Banar1-Apr-22 4:42 

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.