CodePlexProject Hosting for Open Source Software
0 people following this project (follow)
public interface IAddService { int Add(AddParams p); }
[Serializable] public class AddParams { public int X { get; set; } public int Y { get; set; } }
public class AddServiceController : Controller, IAddService { public int Add(AddParams p) { return p.X + p.Y; } }
var service = ServiceFactory.Create<IAddService>(); var p = new AddParams() { X = 1, Y = 3 }; int result = service.Add(p); // here is magic ;) // ... service.Add(1, 3); multiple input parameters are not supported, yet Assert.IsEqual(4, result);
Last edited Oct 4 2010 at 2:22 PM by dariog, version 9
There is no recommended release for this project.