CustomResourceExtensions Methods
ClassMethods1 member
Extension methods for applying dashboard annotations to resources.
WithInitialState(IResourceBuilder<TResource>, CustomResourceSnapshot) Section titled WithInitialState(IResourceBuilder<TResource>, CustomResourceSnapshot)extensionIResourceBuilder<TResource> Initializes the resource with the initial snapshot.
public static class CustomResourceExtensions{ public static IResourceBuilder<TResource> WithInitialState<TResource>( this IResourceBuilder<TResource> builder, CustomResourceSnapshot initialSnapshot) { // ... }}Parameters
builderIResourceBuilder<TResource> The resource builder.initialSnapshot CustomCustomResourceSnapshot for this resource.Returns
IResourceBuilder<TResource> The resource builder.Remarks
This method is not available in polyglot AppHosts.