# EventingSubscriberRegistrationContext.onAfterResourcesCreated

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [EventingSubscriberRegistrationContext](/reference/api/typescript/aspire.hosting/eventingsubscriberregistrationcontext.md)
- Version: `13.3.0`
- Kind: `method`

Subscribes an eventing subscriber to the AfterResourcesCreated event

## Definition

```typescript
interface EventingSubscriberRegistrationContext {
  // ... omitted for brevity
  onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription;
}
```

## Signature

```typescript
onAfterResourcesCreated(callback: (arg: AfterResourcesCreatedEvent) => Promise<void>): DistributedApplicationEventSubscription
```

## Parameters

- `callback` (`(arg: AfterResourcesCreatedEvent) => Promise<void>`)

## Returns

[DistributedApplicationEventSubscription](/reference/api/typescript/aspire.hosting/distributedapplicationeventsubscription.md)

## Defined on

- [EventingSubscriberRegistrationContext](/reference/api/typescript/aspire.hosting/eventingsubscriberregistrationcontext.md) -- `handle`
