December 18, 2013
I published a post in OzCode’s blog that describes the aspects of exception handling with the TPL.You can follow this link if you like to enjoy the read.
September 3, 2013
OData protocol offers a rich and powerful query API over the data exposed from the data service. Usually, the query description is aggregated to the URI of the service operation as the query string, then the service can translate that query back on to the queryable model and return the specific query desired by the client. If you used it before, you must have seen the power it brings you in exposing the data to many clients and platforms to support each and every need. In addition to WCF Data Services, ASP.NET WebAPI has too...
February 21, 2013
The default behavior of WCF services is to expose schemas in the service metadata of the object data graph that is exposed in the service contract. When consuming the metadata, the default behavior is very similar in the sense that it creates the object data graph that is exposed in the service contract. In some cases you may want to publish additional data as part of the service metadata even though it isn’t referenced somewhere in the service contract, that is other than the fault contracts, parameters object graph, and the return values. How can...
December 20, 2012
You may find the need to determine the request and reply message size when calling a service operation. It can be for logging purposes, or a practical one such as deciding whether you need to compress the data or not. The key component in WCF that knows about the actual size of the message is the message encoder, and of course, you can plug-in your own encoder as part of WCF’s extensibility point. Ahhh, got to love this framework! Lets examine the feature requirements first - We need to have a...
December 11, 2012
This post discusses several questions: Should ‘PerCall’ services care about the concurrency mode? Can closing the channel block after calling O/W operation? Should you reuse the same proxy instance concurrently? Does the Async Pattern matter in concurrent client? This is quite a long post, but it should be quite interesting , you should download the example here. In order to discuss the matter, let’s establish the scenarios we’re going to test first: About the contract: ...
December 6, 2012
Boy that MS-DTC, huh? It can give much trouble, no doubt. If you can’t communicate between two parties and keep failing with errors such as “The flowed transaction could not be unmarshaled”, try the following: Use DNS instead of IP addresses Disable Firewall Remove security and enable the options in the MS-DTC security (in the Component Services shell) Try DTCPing to troubleshoot the case If everything seems to be set properly and you’re still experiencing connectivity issues, you should try...
December 1, 2012
I assume you have heard about the great addition in .NET 4.5 – The Async Keyword. It is truly one of the key changes made to the .NET language, and it is awesome. Asynchrony should be part of our code, there’s no escape from that. If you write UI applications – you need asynchrony to avoid blocking the UI thread. If you make I/O operations – you should use its asynchronous model that utilizes the I/O completion threads instead of occupying a worker thread. ...
November 27, 2012
If you happened to implement an ‘ICommand’ for your presentation logic in WPF, and decided to contain PRISM’s DelegateCommand within your class and use its own mechanism of the ‘CanExecuteChanged’ event – Beware! Consider the following example - class CommandWrapper : ICommand
private readonly DelegateCommand _command;
public CommandWrapper(Action execute, Func<bool> canExecute)
_command = new DelegateCommand(execute, canExecute);
public bool CanExecute(object parameter)
November 25, 2012
Yes, I am aware I didn’t post anything for a long time, sorry about that. I can try and excuse myself by saying that I had plenty on my hands, including bringing my house together, raising a new baby girl, and much more.. but I won’t Putting everything aside, I plan to get right back on the horse and start posting some interesting stuff real soon, so stay tuned!
June 11, 2011
Expert Days is an annual software development conference held by E4D in Israel. This year, for the first time, some of CodeValue’s experts have joined forces with E4D and are participating in order to give you, the attendee, the best possible value. If you are a software developer, software architect, team leader or somehow interested in the hottest available Microsoft technologies – this is definitely the conference you want to be at. The conference is held on 10/07/2011-14/07/2011, and there are dozens of one-day workshops, which are packed with practical knowledge which you can immediately use....