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. WCF and WF
  4. The messages/notifications between two ServiceHosts

The messages/notifications between two ServiceHosts

Scheduled Pinned Locked Moved WCF and WF
csharpwcfsysadminhostingquestion
1 Posts 1 Posters 9 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.
  • I Offline
    I Offline
    it classiq
    wrote on last edited by
    #1

    I have similar code on server hosting-side:
    (The hosting-part of code is very simplistic)

    // Creation ServiceHost #1.
    serviceFirst = new ServiceHost(typeof(DomainServiceFirst));
    // Waiting for incoming message
    serviceFirst.Open();

    // Creation ServiceHost #2.
    serviceSecond = new ServiceHost(typeof(DomainServiceSecond));
    // Waiting for incoming message
    serviceSecond.Open();
    

    I need to send and receive the messages/notifications about the model-changes between DomainServiceFirst and DomainServiceSecond.
    During the life-time DomainServiceFirst or DomainServiceSecond is activated several changes in the part’s of general model :

    DomainServiceFirst => DomainModelFirst (the part of general model);

    DomainServiceSecond => DomainModelSecond (the part of general model too)

    In the same time the General model is consist of DomainModelFirst & DomainModelSecond

    Each of services (DomainServiceFirst and DomainServiceSecond ) are decorated :

    \[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, 
    InstanceContextMode = InstanceContextMode.PerSession, 
    IncludeExceptionDetailInFaults = true)\]
    

    My question is:
    Is it exists some specifically approach inside WCF-technology for do that (woks with an messages/notifications); if it so, can you please share some internet-links with best-practice examples. Thank you.

    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