Creating a WCF service proxy with ChannelFactory

Posted by Anuraj on Friday, January 23, 2015

.Net .Net 4.0 Visual Studio WCF

A proxy, in its most general form, is a class functioning as an interface to something else. The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate.(From wiki). In case of WCF, proxy class helps client application to use WCF service,without knowing the address or implementation details. Here is the code for generic WCF proxy, using ChannelFactory class. ChannelFactory enables you to dynamically creating a proxy object based on the Service Contract. It will help you to avoid update service references or proxies generated using svcutil utility.

Windows is trying to configure Visio upon Application Start-up

Posted by Anuraj on Tuesday, January 20, 2015

Miscellaneous Windows 7

This post is not related to anything programming :) In my system, when launching Visio, the application will pause while displaying “Please wait while Windows configures Microsoft Visio”. And after sometime, it shows the main window.

How to deploy your nuget packages locally

Posted by Anuraj on Tuesday, December 30, 2014

.Net ASP.Net ASP.Net MVC Visual Studio

In ASP.NET 5, everything is nuget package. If you are developing a class library, that is also has to be a nuget package, which you can add as dependency in a different project.json file. This post will help you to build nuget package and deploy it locally.

Generate unit tests for your code using Smart unit tests

Posted by Anuraj on Tuesday, December 23, 2014

.Net ASP.Net ASP.Net MVC Visual Studio

Smart Unit Tests is a new feature in Visual Studio 2015, Smart Unit Tests helps developers to explore their .NET code to generate test data and a suite of unit tests. For every statement in the code, a test input is generated that will execute that statement. A case analysis is performed for every conditional branch in the code. When you run these smart unit tests, you can easily see which tests are failing and add any necessary code to fix them. You can select which of the generated tests to save into a test project to provide a regression suite. As you change your code, rerun Smart Unit Tests to keep the generated tests in sync with your code changes.

Creating Unit Tests for ASP.NET MVC 6 Applications

Posted by Anuraj on Monday, December 22, 2014

.Net ASP.Net ASP.Net MVC CodeProject EF Code First Entity Framework

This post is about unit testing ASP.NET MVC 6 applications. Unlike MS Test, this post is using XUnit Framework, which is the currently used unit testing framework for ASP.NET 5 applications.

K-MUG User Group Meeting On 20th December - Kochi

Posted by Anuraj on Friday, December 12, 2014

Miscellaneous User Group Activities

Command line scaffolding for ASP.NET 5

Posted by Anuraj on Friday, December 12, 2014

.Net ASP.Net ASP.Net MVC EF Code First Entity Framework Visual Studio

Last K-MUG Session, there was a demo related to ASP.NET MVC scaffolding. This post is about scaffolding support in ASP.NET 5. This post uses K runtime for scaffolding, you can do it using Visual Studio 2015 Preview as well.
Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub