Click here to Skip to main content
15,511,837 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWebService just will not work :-( Pin
Oliver Freeman1-Sep-21 6:48
Oliver Freeman1-Sep-21 6:48 
AnswerRe: WebService just will not work :-( Pin
Richard Deeming1-Sep-21 22:59
mveRichard Deeming1-Sep-21 22:59 
GeneralRe: WebService just will not work :-( Pin
Oliver Freeman2-Sep-21 2:59
Oliver Freeman2-Sep-21 2:59 
GeneralRe: WebService just will not work :-( Pin
DerekT-P21-Oct-21 8:37
professionalDerekT-P21-Oct-21 8:37 
QuestionIs it possible to add fore ground and back ground to any app that is down? Pin
samflex31-Aug-21 19:39
samflex31-Aug-21 19:39 
AnswerRe: Is it possible to add fore ground and back ground to any app that is down? Pin
Richard Deeming31-Aug-21 23:01
mveRichard Deeming31-Aug-21 23:01 
GeneralRe: Is it possible to add fore ground and back ground to any app that is down? Pin
samflex1-Sep-21 6:50
samflex1-Sep-21 6:50 
GeneralRe: Is it possible to add fore ground and back ground to any app that is down? Pin
Richard Deeming1-Sep-21 22:47
mveRichard Deeming1-Sep-21 22:47 
That's the correct change to remove the other email.

If you only want to send the main email if any site is down, you'll need to check before sending it:
C#
bool[] results = await Task.WhenAll(tasks);
if (results.Any(up => !up))
{
    StringBuilder body = ...
    ...
    await SendEmailAsync("DMZ Server Status", body.ToString(), true);
    await Task.Delay(3000);
}
If you only want to send the message if all sites are down, use:
C#
if (results.All(up => !up))




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

GeneralRe: Is it possible to add fore ground and back ground to any app that is down? Pin
samflex2-Sep-21 4:02
samflex2-Sep-21 4:02 
Questionproject code in .net for online banking transaction Pin
Jk 0724-Aug-21 6:12
Jk 0724-Aug-21 6:12 
AnswerRe: project code in .net for online banking transaction Pin
Richard MacCutchan24-Aug-21 6:40
mveRichard MacCutchan24-Aug-21 6:40 
GeneralRe: project code in .net for online banking transaction Pin
Member 1534301831-Aug-21 23:04
Member 1534301831-Aug-21 23:04 
QuestionI am having problem creating a script to monitor Rest/API services. Pin
samflex23-Aug-21 9:11
samflex23-Aug-21 9:11 
AnswerRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming23-Aug-21 22:15
mveRichard Deeming23-Aug-21 22:15 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex24-Aug-21 6:08
samflex24-Aug-21 6:08 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
David Mujica24-Aug-21 7:04
David Mujica24-Aug-21 7:04 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex24-Aug-21 7:09
samflex24-Aug-21 7:09 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 5:18
samflex25-Aug-21 5:18 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
David Mujica25-Aug-21 6:24
David Mujica25-Aug-21 6:24 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 7:09
samflex25-Aug-21 7:09 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming25-Aug-21 7:18
mveRichard Deeming25-Aug-21 7:18 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex25-Aug-21 9:23
samflex25-Aug-21 9:23 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming25-Aug-21 23:12
mveRichard Deeming25-Aug-21 23:12 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
samflex26-Aug-21 4:04
samflex26-Aug-21 4:04 
GeneralRe: I am having problem creating a script to monitor Rest/API services. Pin
Richard Deeming26-Aug-21 4:52
mveRichard Deeming26-Aug-21 4:52 

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.