Skip to main content

Posts

Showing posts with the label Dot Net

StyleCop Issues in C# Code - How to get rid of them real quick !!

Are you not able to checkin your code because of the Gated Checkin Policy due to StyleCop issues in your code ? Do you have hundreds and hundreds of StyleCop issues to fix in short time ? Are you looking for ways to quickly/automatically Fix StyleCop issues in your C# code ? Then in that case, you have two options: Use Resharper Resharper is a great tool for fixing such issues, but it comes with a licensing cost. Use Free extensions available in Visual Studio marketplace Wouldn't it be nice if we could have a Visual Studio Extension that could fix all the StyleCop issues for us, and is FREE at the same time. Well there is one, available as a Visual Studio Extension, its called " Code Formatter ". This tool in combination with StyleCop works very efficiently in resolving most of the StyleCop issues in code. Below are some of the features of this tool: • Format the class file (.cs) to arrange members of class in the proper order. • Using statements ...

Swagger UI in ASP.NET Web API

What is SWAGGER UI? Swagger UI is an HTML/CSS/JS framework that provides interactive documentation of your RESTful APIs and generates a navigable UI of the documentation. Swagger UI provides automatically generated HTML assets that give you automatic documentation and even an online test tool. It is extremely easy to set up, and comes with a lot of configurable options like XML Documentation, various kinds of Authentications (Basic, OAUTH2, API key), etc. which can be configured depending on the security schemes set up in your APIs. This can reduce the time and efforts you spend on creating your Client Application to consume and test your RESTful APIs. With minimum amount of code, you will get an easy to use test client for your APIs. Benefits of using SWAGGER UI? A Sandbox! Create test client for your APIs in seconds! It's comprehensible for developers and non-developers. It's easily adjustable. It’s like a sitemap for your API. How to set Up the Swagger...

Scaling Azure Web Apps

What is Scaling? Scaling in Web Applications world refers to adaptability to changed load and traffic. Availability and Performance are the most important aspects of any Web Application. Hence, any Web App should be able to adapt to the changed amount of workload and traffic that it gets. When we deploy our web apps to azure, it is called an instance. It is allocated certain amount of hardware resources & servers depending upon your App Service Plan. There are basically two kinds of scaling that is performed on a web application: SCALE OUT (Horizontal) Scale Out refers to increasing the number of instances for your web application. To scale out a web app, you increase the number of virtual machine instances on which your web app is running. SCALE UP (Vertical) Scale Up refers to increasing the resource capacity, such as RAM and CPU cores, of the virtual machine on which your web app is running. Why Scaling? Pages load slowly, Network connections star...