Web API allows you to plug in extensive logging mechanism through the ITraceWriter service. This will log all important events in the pipeline – such as selection of the controller, action, parameter binding and so on – all of which … Continue reading →The post Per request tracing in ASP.NET Web API appeared first on StrathWeb.
I find that the best way to learn any new technology, or technology that are unfamiliar with, is to sit down and practice. The purpose of this very simple tutorial is to learn the basics of creating a single page website that can be used to capture peoples names and telephone numbers. By following this […]
If you are going to Visual Studio Live! in Las Vegas next week (March 10-14), I hope I will see you at my Visual Studio sessions. I am covering both the new Integrated Development Environment (IDE) and the many very cool new code editor features. If you want a sneak peak at the code … you can find it here. Enjoy!
Check out my Pluralsight courses!
In the previous blog post we added some unit tests that tested the WebAPI and also included the RavenDB storage behind it. As I explained the recommendation is not to use fakes or mocks but just to use the in memory variant of RavenDB during testing. However the WebAPI controller used a static RavenConfig.Store property to get to the RavenDB database. And that is the kind of hard coupling we would prefer not to have even if we don't need to create a fake for our tests. Adding Ninject to do our server side
dependency injections There are many dependency frameworks you can use with your .NET code. I am not going to comment on their respective quality and merits, I have used several and most work just fine. That said I have always liked Ninject so that is what I am going to use here. In this case we are just worried about the WebAPI and even though Ninject doesn't have that in the box there is a pretty good blog post by Peter Provost describing how to set things up. So basically adding his code will take care...(Read whole news on source site)
If you need to retrieve the list of the tables created by the users in SQL Server, you can do that easily by querying the sys.objects table. How to Get the List of User Tables in SQL Server? For example, the below query would display the list of tables and the type from the SQL...
SignalR provides real-time communications between servers and clients.