ResourceEndpointsAllocatedEvent Constructors
ClassConstructors1 member
This event is raised by orchestrators to signal to resources that their endpoints have been allocated.
Constructor(IResource, IServiceProvider) Section titled Constructor(IResource, IServiceProvider) This event is raised by orchestrators to signal to resources that their endpoints have been allocated.
public class ResourceEndpointsAllocatedEvent{ public ResourceEndpointsAllocatedEvent( IResource resource, IServiceProvider services) { // ... }}Parameters
resourceIservicesIServiceProvider Remarks
Resources that customize their URLs via a
ResourceUrlsCallbackAnnotation have their callbacks invoked before event handlers run. Browser URL references contain the finalized values at that point. Endpoint and URL configuration must be registered before this event is published. Browser-facing resource allocators should complete allocation through DistributedApplicationEventingExtensions.PublishResourceEndpointsAllocatedAsync so URL customization completes before the notification is dispatched.