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