Passing an object as a parameter to a windows service

Posted by user220723 on Stack Overflow See other posts from Stack Overflow or by user220723
Published on 2010-05-24T22:19:40Z Indexed on 2010/05/24 22:21 UTC
Read the original article Hit count: 218

Filed under:
|
|

Is there some way to pass an object to a windows service? I know the method myServiceController.Star(string[] arg) but i need to pass a more complex object than a string array. Actually, i don't need the object to be passed as a parameter, what i really needs is that the service can use an object created in a windows forms application. I've tried using System.Web.Script.Serialization.JavaScriptSerializer.Serialize method to convert the object into a Json but i couldn't because the object contains a circular reference. I also tried using pointers, but i couldn't becouse it is a managed type object.

Any idea what can i do?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows