Steeltoe upgrade from 2.4.3 to 3.2.6 - break code

104 views Asked by At

We are using Steeltoe.Management.CloudFoundryCore Version="2.4.3" and trying to upgrade it to Version="3.2.6", however it is breaking while trying to use UseCloudFoundryActuators method something like following.

enter image description here

By referring the source code, it seems like in latest version the entire CloudFoundryApplicationBuilderExtensions class got removed.

Can someone please suggest the alternative solution to use cloud foundryActuators method?

1

There are 1 answers

2
Tim On BEST ANSWER

Most of the Cloud Foundry code was always in the main Endpoints project, so we simplified things a bit and now you can .AddAllActuators() on your hostbuilder and the Cloud Foundry specifics will light up when running in such an environment.

If you'd prefer to stick with configuring actuators in startup.cs you'll want to look at the source for one of the hostbuilder extensions as they contain several lines of code. This particular line of code can be replaced with ActivateActuatorEndpoints(this IServiceCollection collection, Action<IEndpointConventionBuilder> configureEndpoints = null)