Home > Net >  WCF service implementation class can be directly new?
WCF service implementation class can be directly new?

Time:12-15

WCF, the service implementation class MyService can class New?
In server applications, for example, one of the service implementation class MyService class DoSomething method, somewhere in the server, can direct the new object to invoke the service method, as follows:
MyService ms=New MyService ();
Ms. DoSomething ();

Is that ok?
  •  Tags:  
  • C#
  • Related