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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How to retrive message list from p2p

How to retrive message list from p2p

Scheduled Pinned Locked Moved C#
wpfwcfdockerhelptutorial
1 Posts 1 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.
  • S Offline
    S Offline
    Saiyed Alam
    wrote on last edited by
    #1

    Hello friends I have a messaging system that uses p2p. Each peer has a incoming message list and a outgoing message list. What I need to do is whenever a new peer will join the mesh he will get the all the incoming messages from other peers and add those into it's own incoming message list. Now I know when I get the other peer info from I can ask them to give their own list to me. But I'm not finding the way how..? Any suggestion on this or help would be highly appreciated. I'm giving my code below. Thanking in Advance Johnny

       #region Instance Fields
        
        private string strOrigin = "";
        //the chat member name
        private string m\_Member;
        //the channel instance where we execute our service methods against
        private IServerChannel m\_participant;
        //the instance context which in this case is our window since it is the service host
        private InstanceContext m\_site;
        //our binding transport for the p2p mesh
        private NetPeerTcpBinding m\_binding;
        //the factory to create our chat channel
        private ChannelFactory<IServerChannel> m\_channelFactory;
        //an interface provided by the channel exposing events to indicate
        //when we have connected or disconnected from the mesh
        private IOnlineStatus o\_statusHandler;
        //a generic delegate to execute a thread against that accepts no args
        private delegate void NoArgDelegate();
        //an object to hold user details
        private IUserService userService;        
        //an Observable Collection of object to get all the Application Instance Details in databas
        ObservableCollection<AppLoginInstance> appLoginInstances;
        // an Observable Collection of object to get all Incoming Messages types
        ObservableCollection<MessageType> inComingMessageTypes;
        // an Observable Collection of object to get all Outgoing Messages
        ObservableCollection<PDCL.ERP.DataModels.Message> outGoingMessages;
        // an Observable Collection of object to get all Incoming Messages
        ObservableCollection<PDCL.ERP.DataModels.Message> inComingMessages;
        //an Event Aggregator to publish event for other modules to subscribe
        private readonly IEventAggregator eventAggregator;   
     
        /// <summary>
        /// an IUnityCOntainer to get the container
        /// </summary>
        private IUnityContainer container;
        private RefreshCon
    
    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