Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2615:
increased message size to 20MB
made changes in some interfaces

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