Click here to Skip to main content
15,918,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mocking Controller Methods Pin
Eddy Vluggen8-Jan-17 2:42
professionalEddy Vluggen8-Jan-17 2:42 
AnswerRe: Mocking Controller Methods Pin
Member 128317728-Jan-17 19:15
Member 128317728-Jan-17 19:15 
GeneralRe: Mocking Controller Methods Pin
Liagapi11-Jan-17 5:24
Liagapi11-Jan-17 5:24 
QuestionI want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 5:16
professionalMember 105306516-Jan-17 5:16 
AnswerRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 5:34
mveOriginalGriff6-Jan-17 5:34 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 7:03
professionalMember 105306516-Jan-17 7:03 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 8:06
mveOriginalGriff6-Jan-17 8:06 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 8:35
professionalMember 105306516-Jan-17 8:35 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 8:49
mveOriginalGriff6-Jan-17 8:49 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 9:04
professionalMember 105306516-Jan-17 9:04 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 9:26
mveOriginalGriff6-Jan-17 9:26 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 9:59
professionalMember 105306516-Jan-17 9:59 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
OriginalGriff6-Jan-17 10:40
mveOriginalGriff6-Jan-17 10:40 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 10:49
professionalMember 105306516-Jan-17 10:49 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Dave Kreskowiak6-Jan-17 11:15
mveDave Kreskowiak6-Jan-17 11:15 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 11:29
professionalMember 105306516-Jan-17 11:29 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Dave Kreskowiak6-Jan-17 11:33
mveDave Kreskowiak6-Jan-17 11:33 
GeneralRe: I want to replace number in two tag to double with regex in a file txt Pin
Member 105306516-Jan-17 11:37
professionalMember 105306516-Jan-17 11:37 
QuestionC# Get random object form JSON File Pin
Pavlex44-Jan-17 7:22
Pavlex44-Jan-17 7:22 
AnswerRe: C# Get random object form JSON File Pin
NotPolitcallyCorrect4-Jan-17 7:41
NotPolitcallyCorrect4-Jan-17 7:41 
GeneralRe: C# Get random object form JSON File Pin
Gerry Schmitz4-Jan-17 7:59
mveGerry Schmitz4-Jan-17 7:59 
GeneralRe: C# Get random object form JSON File Pin
NotPolitcallyCorrect4-Jan-17 8:32
NotPolitcallyCorrect4-Jan-17 8:32 
GeneralRe: C# Get random object form JSON File Pin
OriginalGriff4-Jan-17 8:11
mveOriginalGriff4-Jan-17 8:11 
GeneralRe: C# Get random object form JSON File Pin
NotPolitcallyCorrect4-Jan-17 8:27
NotPolitcallyCorrect4-Jan-17 8:27 
QuestionA Better Way? Pin
Kevin Marois4-Jan-17 5:35
professionalKevin Marois4-Jan-17 5:35 
I'm trying to handle the case where the client calls through the hub into the server and an error occurs.

If an error occurs then there could be an inner exception. So far I have this but it feels funny. Anyone have a better way?
_hubProxy.Invoke("SomeMethodName", model).ContinueWith((t) =>
{
    if (t.Exception != null && t.Exception.InnerException != null)
    {
        // Do something here. Log the error
        throw t.Exception.InnerException;
    }
});
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

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.