Geeks With Blogs
Prasanna's Blog BizTalk, WCF, C# and Software Factories February 2008 Entries
Delegate inference
Delegate inference allows you to make a direct assignment of a method name to a delegate variable, without wrapping it first with a delegate object. The oldwayclass shows implementation in C# 1.1 class OldWayClass { delegate void notifyDelegate(); public void InvokeMethod() { notifyDelegate del = new notifyDelegate(SomeMethod); del(); } void SomeMethod() {...} } and the NewWayClass is the sample implementation in C# 2.0 class NewWayClass { delegate void notifyDelegate(); public void InvokeMethod() ......

Posted On Tuesday, February 26, 2008 8:01 AM

Covariance and contravariance in delegate
Covariance and contravariance provide a degree of flexibility when you match method signatures with delegate types. Covariance permits a method to have a more derived return type than what is defined in the delegate. Contravariance permits a method with parameter types that are less derived than in the delegate type. contravariance example: This example demonstrates how delegates can be used with methods that have parameters of a type that are base types of the delegate signature parameter type. ......

Posted On Monday, February 25, 2008 7:45 PM

Generic Proxy for WCF services
When we generate (WCF) service proxy class for a service by using svcutil.exe, it creates a proxy that derives from System.ServiceModel.ClientB... The proxy implements IDisposable and the client code can be wraped inside using statement and guaranteed clean-up in the face of exceptions. However, the System.ServiceModel.ClientB... class can throw exceptions from its Dispose method, because it internally invokes Close() method which might lead t0 a faulted state. In ......

Posted On Saturday, February 23, 2008 12:14 PM

Socket errors in WCF netTcpBinding
i just finished writing Windows service host for my WCF services, there were no crash or exceptions thrown either by client or server, I was just browing event log to check things were fine, then noticed at end of each call to WCF service, there was a log message with the following exception System.ServiceModel.Communi... occurred Message="The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, ......

Posted On Friday, February 22, 2008 2:10 PM

Static Class in Dotnet

I guess most of us know what a static class is, you can't instiantiate, cannot have any instancing members etc.

This might sound funny but the truth is Static class are "Abstract and Sealed", never understood why ?

If you dont agree with me, use reflector or ILDASM and view your static Class .

Happy Programming !!!

----

Posted On Tuesday, February 5, 2008 8:53 AM

Build Error and Temporary ASP.NET Files
This afternoon i had changed the name of one of the Assembly which was refered by ASP.net web site. I had removed the Old reference and re-added the new assembly. Few moments later i tried to build the website and it's not possible due to a failure in the build process. Error List had several errors. I clicked on the error descrpition and it opened a class file. This file doesn't belong to my current project. It was a temporary asp.net file , this file is related to a real class file on my project ......

Posted On Monday, February 4, 2008 4:57 PM

Web Client Software Factory + VSS issue
we have newly added the web client solution was added to the source control Strange error when we tried to add a new Business Module to the solution Here is the error description Microsoft.Practices.RecipeF... An exception occurred during the binding of reference or execution of recipe CreateModuleCS. Error was: Action AddCompositeWebAssemblyRefe... failed to execute: Folder C:\Consensus.Net\UI\Consens... does not exist. You can remove the ......

Posted On Friday, February 1, 2008 2:43 PM

Service Factory - Modeling Edition CTP (VS2008) - Available for Download
System Requirements To view and run the Service Factory assets in your development environment, you need the following software installed on your computer: Windows XP Professional, Windows Server 2003, or Windows Vista operating system Microsoft Visual Studio 2008 (Visual Studio Professional Edition or Visual Studio Team Suite) Guidance Automation Extensions (July 2007 Community Technology Preview) In addition to the preceding requirements, if you want to install the Service Factory source code, ......

Posted On Friday, February 1, 2008 12:24 PM

Error while generating Data Repository Class using WSSF Data Access Guidance Package
Things were quite fine untill we were not using source control, here is another exception while generating Data Repository Classes. Microsoft.Practices.RecipeF... An exception occurred during the binding of reference or execution of recipe CreateDataRepositoriesFromD... Error was: Action AddIDbToBusinessEntityNameM... failed to execute: Access to the path 'C:\Consensus.Net\CoreBooki... Access\Consensus.Net.DataAc... ......

Posted On Friday, February 1, 2008 10:48 AM

Copyright © Prasanna Krishnan | Powered by: GeeksWithBlogs.net