CustomResourceExtensions Methods
Class Methods 1 member
Extension methods for applying dashboard annotations to resources.
WithInitialState(IResourceBuilder<TResource>, CustomResourceSnapshot) Section titled WithInitialState(IResourceBuilder<TResource>, CustomResourceSnapshot) extension IResourceBuilder<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
builder IResourceBuilder<TResource> The resource builder. initialSnapshot CustomResourceSnapshot The factory to create the initial CustomResourceSnapshot for this resource. Returns
IResourceBuilder<TResource> The resource builder.