Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Comunicating with service application.

Comunicating with service application.

Scheduled Pinned Locked Moved C#
help
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    murad basdag
    wrote on last edited by
    #1

    Hi all, I have a service application and a windows application to manage that Service application. Now i can stop, run and pause.. my service application from my windows app. But i cant run a method from Service application or any similar things. I want to get some values from Service app. but i don't know the best way to commonicate witn an service app. Please help me about this issue. Thans for your interesting.

    Murad from Istanbul

    H S 2 Replies Last reply
    0
    • M murad basdag

      Hi all, I have a service application and a windows application to manage that Service application. Now i can stop, run and pause.. my service application from my windows app. But i cant run a method from Service application or any similar things. I want to get some values from Service app. but i don't know the best way to commonicate witn an service app. Please help me about this issue. Thans for your interesting.

      Murad from Istanbul

      H Offline
      H Offline
      hansipet
      wrote on last edited by
      #2

      You can make a server application within the service...use dotnet remoting Best regards Hansjörg

      1 Reply Last reply
      0
      • M murad basdag

        Hi all, I have a service application and a windows application to manage that Service application. Now i can stop, run and pause.. my service application from my windows app. But i cant run a method from Service application or any similar things. I want to get some values from Service app. but i don't know the best way to commonicate witn an service app. Please help me about this issue. Thans for your interesting.

        Murad from Istanbul

        S Offline
        S Offline
        Stefan Prodan
        wrote on last edited by
        #3

        If the windows application is on the same PC as the service best is to use .NET Remoting with IPC protocol. Registering a IPC port will not make the firewall jump and you can use binary serialization.

        http://stefanprodan.wordpress.com

        M 1 Reply Last reply
        0
        • S Stefan Prodan

          If the windows application is on the same PC as the service best is to use .NET Remoting with IPC protocol. Registering a IPC port will not make the firewall jump and you can use binary serialization.

          http://stefanprodan.wordpress.com

          M Offline
          M Offline
          murad basdag
          wrote on last edited by
          #4

          Thank you very much. This is enough for me. Bye for now

          Murad from Istanbul

          L 1 Reply Last reply
          0
          • M murad basdag

            Thank you very much. This is enough for me. Bye for now

            Murad from Istanbul

            L Offline
            L Offline
            laddie 0
            wrote on last edited by
            #5

            I am just wondering why you need to take a long route..If the need is to run sone function and get a value back why dont you define OnCustomCommand and pass a value.You have the room to pass between 128 - 256 this you can execute up to 128 custom functions in side the service.

            M 1 Reply Last reply
            0
            • L laddie 0

              I am just wondering why you need to take a long route..If the need is to run sone function and get a value back why dont you define OnCustomCommand and pass a value.You have the room to pass between 128 - 256 this you can execute up to 128 custom functions in side the service.

              M Offline
              M Offline
              murad basdag
              wrote on last edited by
              #6

              Because i can't find a any way to get back any values from service application. OnCustomCommand is void and i can't use 'return obj' in OnCustomCommand method. If you know a good way for it, please write it to me. Thanks.

              Murad from Istanbul

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups