Example #1
0
 public async Task Start(UdpHost host, IPEndPoint server)
 {
     var entitiesServiceLocation = new ServiceLocation(server, "entities");
     AvatarService = new AvatarService(entitiesServiceLocation);
     ViewerService = new ViewerService(entitiesServiceLocation, AvatarService.Id);
     
     await AvatarService.Start(host.CreateCommunicator());
     await ViewerService.Start(host.CreateCommunicator());
 }
Example #2
0
 public async Task Start(UdpHost host)
 {
     var entitiesService = new EntitiesService();
     await entitiesService.Start(host.CreateCommunicator("entities"));
 }
Example #3
0
 public HostCommunicator(UdpHost host, string id)
 {
     this.host = host;
     Id = id;
     location = new ServiceLocation
     {
         EndPoint = host.PublicEndpoint,
         Id = id
     };
 }