Free cookie consent management tool by TermsFeed Policy Generator

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

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

changed a few method names and other refactoring

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