Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/16 13:24:28 (8 years ago)
Author:
thasling
Message:

Connectionstring to peerlistserver now in app.config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/thasling/DistributedGA/DistributedGA.Core/Implementation/MessageContractImpl.cs

    r13524 r13538  
    1 using DistributedGA.Core.Domain;
     1using System;
     2using System.ServiceModel;
     3using DistributedGA.Core.Domain;
    24using 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;
    95
    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 };
     6namespace DistributedGA.Core.Implementation {
     7  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
     8  public class MessageContractImpl : IMessageContract {
     9    public void SendPopulation(PeerInfo sender, SolutionInfo[] population) {
     10      MessageRecieveEventArgs args = new MessageRecieveEventArgs() { Sender = sender, Population = population };
    1811
    19             if (MessageRecieved != null)
    20             {
    21                 MessageRecieved(this, args);
    22             }
    23         }
     12      if (MessageRecieved != null) {
     13        MessageRecieved(this, args);
     14      }
     15    }
    2416
    25         public event EventHandler<MessageRecieveEventArgs> MessageRecieved;
    26     }
     17    public event EventHandler<MessageRecieveEventArgs> MessageRecieved;
     18
     19  }
    2720}
Note: See TracChangeset for help on using the changeset viewer.