private void Construct(IParticleService particleService, IStatisticService statisticService, IRewardService rewardService) { this.particleService = particleService; this.statisticService = statisticService; this.rewardService = rewardService; }
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), ""); }
public void UpdateRemoteAddress(Uri address) { RemoteAddress = address; _particleClient = ParticleServiceClient.CreateClient(address.ToString()); }
public NamePartService(IParticleService particleService) { _particleService = particleService; }