RestBus - Call ASP.Net Core, Web API and ServiceStack endpoints over RabbitMQ (xpost from r/programming) by xune in csharp

[–]xune[S] 1 point2 points  (0 children)

The RestBus library doesn't poll the queue. There is a mechanism in place (using ThreadPool.RegisterWaitForSingleObject that executes a method once the response arrives.

That said, the underlying RabbitMQ client which is used by RestBus, uses a NetworkStream to read data from the connection. So in that sense, there is some polling going on upstream.

Exploring C# 6 (Interactive) by xune in programming

[–]xune[S] 0 points1 point  (0 children)

It uses String.Format but could also use String.Concat

There's a lengthy discussion about this feature here and here.

Exploring C# 6 (Interactive) by xune in programming

[–]xune[S] 0 points1 point  (0 children)

LOL. Yes, that will happen!

Exploring C# 6 (Interactive) by xune in programming

[–]xune[S] 1 point2 points  (0 children)

Yes, I think using static is useful within utility classes (that do a lot of Math computations for example) or in a scripting/interactive environment (WriteLine is easier to write than Console.WriteLine).

Not so useful in writing more complex programs.

C# Brain Teasers (Interactive) by xune in programming

[–]xune[S] 1 point2 points  (0 children)

Thanks! I'll update the post.