public BestShotMessage MakeBestShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore, decimal secondaryScore, int shotNbr, int programNumber) { var message = new BestShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber); message.ProcessDelegate = _messageHandler.ProcessBestShotMessage; return message; }
public BestShotMessage MakeBestShotMessage(int shooterId, int laneId, int laneNumber, DateTime timestamp, decimal primaryScore, decimal secondaryScore, int shotNbr, int programNumber) { var message = new BestShotMessage(shooterId, laneId, laneNumber, timestamp, primaryScore, secondaryScore, shotNbr, programNumber); message.ProcessDelegate = _messageHandler.ProcessBestShotMessage; return(message); }
public void ProcessBestShotMessage(BestShotMessage bestShotMessage) { ShotEventArgs e = new ShotEventArgs { PrimaryScore = bestShotMessage.PrimaryScore, SecondaryScore = bestShotMessage.SecondaryScore, ProgramNumber = bestShotMessage.ProgramNumber, LaneNumber = bestShotMessage.LaneNumber, LaneId = bestShotMessage.LaneId, Ordinal = bestShotMessage.ShotNbr, }; OnBestShot(e); }