static void Main(string[] args) { var bot = new BotBitsClient(); DiagnosticsExtension.LoadInto(bot); EventAnalyzer.Of(bot).AnalyzeAssembly(Assembly.GetAssembly(typeof(BotBitsClient))); }
public MapViewModel(EventAnalyzer analyzer, IFileSystem fileSystem) : base(analyzer) { MapManager = new MapManager(fileSystem); MapPlot = new PlotModel { PlotAreaBorderThickness = new OxyThickness(0), }; }
protected PluginBase(EventAnalyzer analyzer) { EventAnalyzer = analyzer; EventAnalyzer.Updated += OnUpdated; EventAnalyzer.SessionStarted += OnSessionStarted; EventAnalyzer.SessionFinished += OnSessionFinished; EventAnalyzer.LapStarted += OnLapStarted; EventAnalyzer.LapFinished += OnLapFinished; EventAnalyzer.LapInvalidated += OnLapInvalidated; EventAnalyzer.SectorChanged += OnSectorChanged; EventAnalyzer.PitlaneStarted += OnPitlaneStarted; EventAnalyzer.PitlaneFinished += OnPitlaneFinished; }
protected void Create(ICollector collector) { if (collector == null) { return; } Logger.Info($"Creating collector of type ${collector.GetType().Name}..."); SearchCancellation.Cancel(); Collector?.Dispose(); Collector = collector; EventAnalyzer = new EventAnalyzer(); OnCollectorCreated(); StartUpdateLoop(); }
public DistributorViewModel(EventAnalyzer analyzer, int port) : base(analyzer) { Publisher = new Publisher(port); Task.Factory.StartNew(Publisher.LookForClients, TaskCreationOptions.AttachedToParent); }
public DashBoardViewModel(EventAnalyzer analyzer) : base(analyzer) { Title = "Waiting for session"; }