protected override void OnNewConnection(MsgNewConnection msg) { //using (var a = new FileStream("Test.txt", FileMode.Append, FileAccess.Write)) //using (var b = new StreamWriter(a)) //{ // b.WriteLine($"{DateTime.Now.TimeOfDay}: OnNewConnection Called {msg.CarId}"); //} var competitor = new Competitor { CompetitorId = Guid.NewGuid().ToString(), SessionId = CurrentSession.SessionId, CarId = msg.CarId, ConnectionId = msg.CarId, CarModel = msg.CarModel, CarSkin = msg.CarSkin, DriverName = msg.DriverName, DriverGuid = msg.DriverGuid, IsConnected = true }; Competitors.Add(ApiWrapperNet4.Post <Competitor>("competitor/addcompetitor", competitor)); }
protected override void OnNewConnection(MsgNewConnection msg) { MRBackend.RandomCarInfoAsync(msg.CarId, msg.CarModel, msg.DriverName, msg.DriverGuid, true, GetCurrentRaceTimeMS(msg)); }
public virtual void OnNewConnection(MsgNewConnection msg) { }
protected internal virtual void OnNewConnection(MsgNewConnection msg) { }