public static BeatPulseContext AddLiveness(this BeatPulseContext ctx, string path, Func <IServiceProvider, IBeatPulseLiveness> creator) => ctx.AddLiveness(new BeatPulseLivenessFactoryRegistration(path, creator));
public static BeatPulseContext AddLiveness(this BeatPulseContext ctx, IBeatPulseLiveness liveness) => ctx.AddLiveness(new BeatPulseLivenessInstanceRegistration(liveness));