Beispiel #1
0
 private void Construct(IParticleService particleService, IStatisticService statisticService,
                        IRewardService rewardService)
 {
     this.particleService  = particleService;
     this.statisticService = statisticService;
     this.rewardService    = rewardService;
 }
Beispiel #2
0
 public ProxyManager(ulong nodeId, int particleId)
 {
     _particleService = new ParticleService();
     _host = new ServiceHost(_particleService,
         new Uri(string.Format("net.tcp://0.0.0.0:{0}/{1}/particle/{2}", PortFinder.FreeTcpPort(), nodeId, particleId))
         );
     _host.AddServiceEndpoint(typeof(IParticleService), new NetTcpBinding(SecurityMode.None), "");
 }
Beispiel #3
0
 public ProxyManager(ulong nodeId, int particleId)
 {
     _particleService = new ParticleService();
     _host            = new ServiceHost(_particleService,
                                        new Uri(string.Format("net.tcp://0.0.0.0:{0}/{1}/particle/{2}", PortFinder.FreeTcpPort(), nodeId, particleId))
                                        );
     _host.AddServiceEndpoint(typeof(IParticleService), new NetTcpBinding(SecurityMode.None), "");
 }
Beispiel #4
0
 public void UpdateRemoteAddress(Uri address)
 {
     RemoteAddress = address;
     _particleClient = ParticleServiceClient.CreateClient(address.ToString());
 }
Beispiel #5
0
 public void UpdateRemoteAddress(Uri address)
 {
     RemoteAddress   = address;
     _particleClient = ParticleServiceClient.CreateClient(address.ToString());
 }
 public NamePartService(IParticleService particleService)
 {
     _particleService = particleService;
 }