HOW TO AVOID TOO MANY OBJECT CREATION IN Silverlight enabled WCF service,
in silverlight enabled wcf service,
i have used 4 classes, each class contain minimum 10 function,
if create object each class occupy more space right.
how avoid that?
example:
[servicecontract(namespace = "")]
[aspnetcompatibilityrequirements(requirementsmode = aspnetcompatibilityrequirementsmode.allowed)]
public class service1
{
public class1 objc1 = new class1();
public class2 objc2 = new class2();
public class3 objc3 = new class3();
public class4 objc4 = new class4();
[operationcontract]
public void dowork()
{
// add operation implementation here
return;
}
use single object perform task ,
if it's possible , kindly send sample link or code.
please see link:
http://www.csharp-station.com/tutorials/lesson06.aspx
in example had call class namespace.
Silverlight > Getting Started with Silverlight
Comments
Post a Comment