private void OnApiEventRaised(TApiEvent eventItem)
        {
            if (ApiEventRaised is null || eventWorkerThread is null)
            {
                return;
            }

            var  eventargs = new ApiEventRaisedEventArgs <TApiEvent>(eventItem);
            Task task      = eventWorkerThread.ContinueWith(t => ApiEventRaised(this, eventargs));
        }
Example #2
0
        private void HandleDssApiEvent(object?sender, ApiEventRaisedEventArgs <DssEvent> args)
        {
            if (args.ApiEvent is null)
            {
                return;
            }

            switch (args.ApiEvent.SystemEvent.Type)
            {
            case SystemEvent.CallSceneBus: goto case SystemEvent.CallScene;

            case SystemEvent.CallScene:
                HandleDssCallSceneEvent(args.ApiEvent); break;
            }
        }