« first day (2751 days earlier)      last day (2213 days later) » 

7:08 AM
posted on April 27, 2018 by Scott Hanselman

Couple days ago I Added Resilience and Transient Fault handling to your .NET Core HttpClient with Polly. Polly provides a way to pre-configure instances of HttpClient which apply Polly policies to every outgoing call. That means I can say things like "Call this API and try 3 times if there's any issues before you panic," as an example. It lets me move the cross-cutting concerns - the policies

 
 
1 hour later…
8:26 AM
Is there a way to enforce a static constructor to be recalled?
 
 
1 hour later…
9:45 AM
@Wietlol Hey bud, sorry for the late reply, but anyways thank you so much for your help tho
 
10:25 AM
Angular 2 developer using C# backend... Need inputs
-2
Q: Why angular framework code uses extends keyword?

overexchange Premise 1) Structural subtyping As mentioned in wiki: Structural subtyping is arguably more flexible than nominative subtyping, as it permits the creation of ad hoc types and protocols; in particular, it permits creation of a type which is a supertype of an existing type, without m...

 
 
10 hours later…
8:02 PM
Is it possible to generate general method like this:

     public static ServiceResult Ok(object obj)
     {
         return new ServiceResult(true, obj);
     }

But I can define what return type this will take, something like that:

     return ServiceResult.Ok<UserDto>(userDto);
because, if I have bunch of methods, that all return ServiceResult, it's hard to keep an eye, what each method returns
public async Task<ServiceResult> GetUser()
{
   ...
}
 

« first day (2751 days earlier)      last day (2213 days later) »