public void OnInvocationStarted(InvocationStartedEventDescriptor eventData) { _invocationEventBroadcaster.BroadcastEvent(new InvocationEvent { InvocationStarted = new InvocationStartedEvent { InvocationDescriptor = eventData.InvocationDescriptor.ToProto() } }); }
private void BroadcastConnectionEvents(AppConnectionEvent connectionEvent) { var lifecycleEvent = new AppLifecycleEvent(); if (connectionEvent.Type == ConnectionEventType.AppConnected) { lifecycleEvent.Connected = new AppConnectedEvent { ConnectionDescriptor = connectionEvent.Connection.ToProto() }; } else { lifecycleEvent.Disconnected = new AppDisconnectedEvent { ConnectionDescriptor = connectionEvent.Connection.ToProto() }; } _appLifecycleEventBroadcaster.BroadcastEvent(lifecycleEvent); }