public IServiceProvider GetFunctionServices(Guid instanceId) =>
 _instanceServices.SingleOrDefault(k => k.Key.Id == instanceId).Value;