Two Days Course About WCF

יום ראשון, מרץ 2, 2008

Last week Shani Raba and I have performed a two days session about WCF. The presentations from both days are attached. Code will come soon. WCF Course – First Day WCF Course – Second Day
תגיות: , ,
אין תגובות

Taking a shot to simplify Configuration Section using

יום שני, ינואר 14, 2008

  Configuration sections are our ability as developers to interfere in the structure of our configuration file and add some custom value in it. Yoav Michaely (my team mate) and I tried to make the use of it a little simpler. Our goals:1) Make easy use of configuration section instance2) To imitate the functionality of AppSetting of key value collection3) Maybe get some extra functionality in the way – how knows…? So let see out class declaration:public abstract class ConfigurationSectionBase<CurrentClass> : ConfigurationSection that would be our base configuration section class that will encapsulate some basic logic...
אין תגובות

Cache me if you can

יום חמישי, נובמבר 22, 2007

  WCF provides nice capability of extending the behavior of operations by implementing IOperationBehavior interface. I want to concentrate on ApplyDispatchBehavior method of that interface, which purpose is to do extention to server side calls. I will show how I use this extensability to provide a nice and easy cache mechanisam. I will make a class which derives from Attribute class and implements an IOperationBehavior interface. Now I want to interfire in the invoke process of the method so I need to make another class that implements IOperationInvoker interface and would hold the cache logic. And...
תגיות: ,
3 תגובות

Caching with WCF

יום רביעי, נובמבר 21, 2007

  Asp.Net provides us very powerful cache mechanism that can be found under System.Web.Caching. You can access the cache using the folioing syntax: HttpContext.Current.Cache = value; HttpContext.Current.Cache.Add(params...); Lately I was looking for similar mechanism to use with WCF. The flax ability of WCF services provide them to live in supported as well not supported web environment. In that case HttpContext.Current would not be available. From curiosity I went and check how the HttpContext.Current.Cache property is implemented and I was surprised to see the all it does is: return HttpRuntime.Cache. After googling I was more...
תגיות: ,
24 תגובות

TFSBuild – not the right way to do continues integration.

יום ראשון, אוקטובר 21, 2007

  In the past few days I been dealing with setting up continues integration (CI) process in my team. The process is not finished yet but be ready for a post at the minute when it will be done. CI is dealing with automated builds so I needed some automated build tool to handle the job. No so long ago I have been working with MSBuild, which is very powerful tool to manage your build process. However lately more and more often I run in to TFSBuild (which is a tool for automated build that come with TFS) relative with...
2 תגובות

Mocking internal methods and classes with Rhino.Mocks

יום שבת, אוקטובר 13, 2007

  After my trip to Thailand Last month (see some photos) I back and jumped right in to coding. I wrote some code at work and tried to fix some unit tests for it using Rhino Mocks. I guess you all familiar with that powerful tool and I will not try to explain how to use it, it been done perfectly by some of my colleagues. I wrote a class like this: public class User { private void DoSomeLogic() { } public void Add() { DoSomeLogic(); ...
תגיות: ,
2 תגובות