Changeset 13924 for branches/thasling/DistributedGA/DistributedGA.Core/Implementation/MessageContractImpl.cs
- Timestamp:
- 06/19/16 23:32:37 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/thasling/DistributedGA/DistributedGA.Core/Implementation/MessageContractImpl.cs
r13887 r13924 4 4 using DistributedGA.Core.Interface; 5 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 }; 6 namespace 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 }; 14 11 15 if (MessageRecieved != null) 16 { 17 MessageRecieved(this, args); 18 } 19 } 12 if (MessageRecieved != null) { 13 MessageRecieved(this, args); 14 } 15 } 20 16 21 17 public event EventHandler<MessageRecieveEventArgs> MessageRecieved; 22 18 23 19 } 24 20 }
Note: See TracChangeset
for help on using the changeset viewer.