public void StitchInstancesOnStitchStateChanged(object sender, StitchProcessEventArgs e) { var channel = e.IsRunning ? StitchInstanceEvent.ChannelStarted : StitchInstanceEvent.ChannelStopped; _messageBus.Publish(channel, new StitchInstanceEvent { InstanceId = e.InstanceId }); _log.LogInformation("Stitch instance {0} is {1}", e.InstanceId, e.IsRunning ? "started" : "stopped"); }
private void OnStitchStateChange(object sender, StitchProcessEventArgs stitchProcessEventArgs) { StitchStateChange.Raise(this, stitchProcessEventArgs); }