Last change
on this file since 13524 was
13524,
checked in by thasling, 9 years ago
|
Upload des Projekts letztendlich, trotz buggendes Clients...
|
File size:
841 bytes
|
Line | |
---|
1 | using DistributedGA.Core.Domain;
|
---|
2 | using DistributedGA.Core.Interface;
|
---|
3 | using System;
|
---|
4 | using System.Collections.Generic;
|
---|
5 | using System.Linq;
|
---|
6 | using System.ServiceModel;
|
---|
7 | using System.Text;
|
---|
8 | using System.Threading.Tasks;
|
---|
9 |
|
---|
10 | namespace DistributedGA.Core.Implementation
|
---|
11 | {
|
---|
12 | [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
|
---|
13 | public class MessageContractImpl : IMessageContract
|
---|
14 | {
|
---|
15 | public void SendPopulation(PeerInfo sender, SolutionInfo[] population)
|
---|
16 | {
|
---|
17 | MessageRecieveEventArgs args = new MessageRecieveEventArgs() { Sender = sender, Population = population };
|
---|
18 |
|
---|
19 | if (MessageRecieved != null)
|
---|
20 | {
|
---|
21 | MessageRecieved(this, args);
|
---|
22 | }
|
---|
23 | }
|
---|
24 |
|
---|
25 | public event EventHandler<MessageRecieveEventArgs> MessageRecieved;
|
---|
26 | }
|
---|
27 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.