# ResourceUrlsCallbackContext

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.3.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface ResourceUrlsCallbackContext {
  readonly executionContext: DistributedApplicationExecutionContext;
  readonly log: LogFacade;
  readonly resource: IResource;
  readonly urls: ResourceUrlsEditor;
  getEndpoint(name: string): EndpointReference;
}
```

## Properties

- `executionContext`: [DistributedApplicationExecutionContext](/reference/api/typescript/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the execution context for this callback invocation
- `log`: [LogFacade](/reference/api/typescript/aspire.hosting/logfacade.md) `get` -- Gets the callback logger facade
- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- Gets the resource associated with these URLs
- `urls`: [ResourceUrlsEditor](/reference/api/typescript/aspire.hosting/resourceurlseditor.md) `get` -- Gets the URL editor

## Methods

- [getEndpoint](/reference/api/typescript/aspire.hosting/resourceurlscallbackcontext/getendpoint.md) -- `method` -- Gets an endpoint reference from the associated resource
    ```typescript
  getEndpoint(name: string): EndpointReference
  ```
