Posts

Previous Posts

Setup Hangfire in visual studio solution | Hello World Application

Image
Step 1: Open Visual Studio and Execute below command in Package Manager  Install-Package Hangfire After installation ensure highlighted reference added in project Step 2: Make sure SQL Server/Express or any edition reachable from your application - as Hangfire create set of tables Step 3: class Startup | Initialize hangfire Step 4: Register class|method that you want set as cron job Step 5: Run the application, hit the index url to register method - watch d:\ after a minute

Changes in IIS 7.0

All points categorized in to four major sections: Architecture, Management, Compatibility and  Troubleshooting.  Architecture Request processing, PHP support, and the configuration store approach changed Modular approach - all features become building blocks and giving end user to customize the server based upon their need –removing unnecessary load and eliminating the components updates/patch that are not used. Here are some default modules that installs while installing IIS, below are bare minimum modules. Common HTTP features - Static Content, Default Document, Directory Browsing, and HTTP errors Health and Diagnostics features - HTTP Logging, Request Monitor Security features - Request Filtering Performance features - Content Compression Management Tools - IIS Management Console Windows Process Activation Service All modules can be plug into the integrated pipeline Integrated Request Pipeline It’s is set of steps that occurs for every request on server It g

Advantages and disadvantages of agile model

Advantages Highly adaptable approach in case requirement will be changing (due to any reason Financially, Law, policy, trend etc.) frequently and wants development on the pace. Presents high amount of visibility over development progress to client/customer. Help customer and stakeholders to see deviation, challenges and gaps early where they can help and keeps the development focused and on track It only requires necessary documentation that meant for the smooth development and completion of project on time, very light documentation needed. Daily connect with team – emphasizes on direct interact interaction with team, road blocks, inter-dependencies, what completed yesterday, what is plan for today.  – helps in many ways to keep team focused and move towards excellence. Disadvantage It will be challenge for the team if team is not well worked with this approach or not coping with the pace. Team stuck in mid if customer/client not clear on requirement or roadblock

Benefits of Test Driven Development (TDD)

1: Developer plays the role of user and developer while writing code, hence customer centric approach throughout the development 2: Reduces real time issues because of code written with end user mindset 3: Initially takes time but overall less-n-less debugging time 4: Identify cascading code break early or related change in other modules 5: Regression fix early 6: Help avoiding over engineering code which we don’t need actually 7: Avoid Scope Creep, helps in design and create high possibility of acceptance

Difference between WCF and WebAPI

WCF ASP.NET Web API Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them. HTTP only. First-class programming model for HTTP. More suitable for access from various browsers, mobile devices etc enabling wide reach. Enables building services that support multiple encodings (Text, MTOM, and Binary) of the same message type and allows switching between them. Enables building Web APIs that support wide variety of media types including XML, JSON etc. Supports building services with WS-* standards like Reliable Messaging, Transactions, Message Security. Uses basic protocol and formats such as HTTP, WebSockets, SSL, JQuery, JSON, and XML. There is no support for higher level protocols such as Reliable Messaging or Transactions. Supports Request-Reply, One Way, and Duplex message exchange patterns. HTTP is request/response but additional patterns can be supported through  SignalR and Web

Version history of C#

 Version history of C# 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 CLR .NET C#  Release Date 1 1 1.0  February 13, 2002 1.0  1.1   1.0  April 24, 2003 2 2 2 November 7, 2005 2 3.0   3.0  November 6, 2006 2 3.5 3.0  November 19, 2007 4 4 4 April 12, 2010 4 4.5 5 August 15, 2012 4 4.5.1   6 October 17, 2013 4 4.5.2   6 May 5, 2014 C# - 1.0 Managed code C# - 2.0 Generics Nullable types Delegates Implicit method group conversions and anonymous methods Iterator blocks Partial types Covariance and Contra-variance C# - 3.0 Automatic properties Object and collection initializers Implicitly typed local variables and arrays Anonymous types Lambda expressions Expression trees Extension methods Query expressions/query comprehensions LINQ Var Type  C# - 4.0 Dynamic programming Covariance and contravarian