Free cookie consent management tool by TermsFeed Policy Generator

source: branches/thasling/DistributedGA/DistributedGA.Core/Implementation/MessageContractImpl.cs @ 13887

Last change on this file since 13887 was 13887, checked in by thasling, 8 years ago

prepared protoype for next meeting

File size: 707 bytes
Line 
1using System;
2using System.ServiceModel;
3using DistributedGA.Core.Domain;
4using DistributedGA.Core.Interface;
5
6namespace DistributedGA.Core.Implementation
7{
8    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
9    public class MessageContractImpl : IMessageContract
10    {
11        public void SendData(PeerInfo sender, byte[][] data)
12        {
13            MessageRecieveEventArgs args = new MessageRecieveEventArgs() { Sender = sender, data = data };
14
15            if (MessageRecieved != null)
16            {
17                MessageRecieved(this, args);
18            }
19        }
20
21        public event EventHandler<MessageRecieveEventArgs> MessageRecieved;
22
23    }
24}
Note: See TracBrowser for help on using the repository browser.