Search code examples
c#web-serviceswebmethodtermination

How do you end an Application from a Web Method within a Web Service?


I'm trying to create a method within a web service that will terminate the application when called. The purpose of this is to end a game being played with a Windows form. Does anyone have any ideas?


Solution

  • I believe I can "stop" the web service by clearing the session variables. Is this true? Using code:

            Session.Contents.Abandon();