Public Properties in a windows service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2Vhbk1hYw==?=

    #1

    Public Properties in a windows service

    How do I access public properties in a windows service, from a desktop
    application written in vb 2005?
    --
    Sean McIntire
  • Tom Shelton

    #2
    Re: Public Properties in a windows service

    On Oct 18, 3:39 pm, SeanMac <Sean...@discus sions.microsoft .comwrote:
    How do I access public properties in a windows service, from a desktop
    application written in vb 2005?
    --
    Sean McIntire
    You can't directly access properties of a service. If you need to
    support communication with a service, then you need to implement some
    sort of interprocess communication. Since your using .NET - remoting
    or WCF would be a good choice.

    If all you need is to send commands (no responses), it is possible to
    use the ServiceControll er class to send custom integer commands to a
    service. In your service class, you would override servicebases
    OnCustomCommand method.

    --
    Tom Shelton

    Comment

    Working...