Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 public ViewerService(ServiceLocation entitiesServiceLocation, string followId)
 {
     entitiesService = entitiesServiceLocation;
 }
Ejemplo n.º 3
0
 public AvatarService(ServiceLocation entitiesServiceLocation)
 {
     Id = Guid.NewGuid().ToString();
     entitiesService = entitiesServiceLocation;
 }
Ejemplo n.º 4
0
 public HostCommunicator(UdpHost host, string id)
 {
     this.host = host;
     Id = id;
     location = new ServiceLocation
     {
         EndPoint = host.PublicEndpoint,
         Id = id
     };
 }