/// <summary>
        /// Enable the P2P channel and register P2P dispatcher handler in event store.
        /// </summary>
        public static void EnableP2PEventMesh()
        {
            if (_eventchannel == null)
            {
                _eventservice = new EventP2PServices();
                _eventchannel = Mesh.OpenDuplexPeerChannel <IEventP2PServices, IEventP2PServiceChannel>(_eventservice);
            }

            RegisterP2PDispatcherInEventStore();
        }
Beispiel #2
0
    /// <summary>
    /// Enable the P2P channel and register P2P dispatcher handler in event store. 
    /// </summary>
    public static void EnableP2PEventMesh()
    {
      if (_eventchannel == null)
      {
        _eventservice = new EventP2PServices();
        _eventchannel = Mesh.OpenDuplexPeerChannel<IEventP2PServices, IEventP2PServiceChannel>(_eventservice);
      }

      RegisterP2PDispatcherInEventStore();
    }
Beispiel #3
0
        /// <summary>
        /// Enable the P2P channel and register P2P dispatcher handler in event store. 
        /// </summary>
        public static void EnableP2PEventMesh()
        {
            if (_eventchannel == null)
              {
            _eventservice = new EventP2PServices();
            _eventchannel = Mesh.OpenDuplexPeerChannel<IEventP2PServices, IEventP2PServiceChannel>(_eventservice);
              }

              //if (_nodechannel == null)
              //{
              //  _node = new NodeService();
              //  _nodechannel = Mesh.OpenDuplexPeerChannel<INodeServices, INodeServiceChannel>(_node);
              //}

              // register event dispatcher
              RegisterP2PDispatcherInEventStore();
        }