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 | |
---|
1 | using System;
|
---|
2 | using System.ServiceModel;
|
---|
3 | using DistributedGA.Core.Domain;
|
---|
4 | using DistributedGA.Core.Interface;
|
---|
5 |
|
---|
6 | namespace 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.