silverlight 4.0 - query to wcf ria service call -
i have domain service class contain simple poco object , class contain 2 variable , b , method make sum of it.
public class domainservice1 : domainservice { abc obj = new abc(10, 20); public int sum1() { return (obj.a + obj.b); } } public class abc { public int { get; set; } public int b { get; set; } public abc(int c, int d) { = c; d = b; } } }
i wish learn, how can make call wcf ria service @ mainpage @ silverlight?
you can call service on silverlight side way:
domainservice1 domainservice = new domainservice1(); domainservice.sum1((op) => { //op.value has result }, null);
or
domainservice1 domainservice = new domainservice1(); domainservice.sum1(sum1completed, null); (...) void sum1completed(invokeoperation<int> op) { //op.value has result }
Comments
Post a Comment