Last change
on this file was
13971,
checked in by thasling, 8 years ago
|
#2615:
increased message size to 20MB
made changes in some interfaces
|
File size:
633 bytes
|
Rev | Line | |
---|
[13538] | 1 | using System;
|
---|
| 2 | using System.ServiceModel;
|
---|
| 3 | using DistributedGA.Core.Domain;
|
---|
[13524] | 4 | using DistributedGA.Core.Interface;
|
---|
| 5 |
|
---|
[13924] | 6 | namespace DistributedGA.Core.Implementation {
|
---|
| 7 | [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
|
---|
| 8 | public class MessageContractImpl : IMessageContract {
|
---|
[13971] | 9 | public void SendData(PeerInfo sender, byte[] data) {
|
---|
[13924] | 10 | MessageRecieveEventArgs args = new MessageRecieveEventArgs() { Sender = sender, data = data };
|
---|
[13524] | 11 |
|
---|
[13924] | 12 | if (MessageRecieved != null) {
|
---|
| 13 | MessageRecieved(this, args);
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
[13524] | 16 |
|
---|
[13924] | 17 | public event EventHandler<MessageRecieveEventArgs> MessageRecieved;
|
---|
[13538] | 18 |
|
---|
[13924] | 19 | }
|
---|
[13524] | 20 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.