# ResourceUrlsCallbackContext

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

Represents a callback context for resource URLs.

## 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 associated with this invocation of the AppHost.
- `log`: [LogFacade](/reference/api/typescript/aspire.hosting/logfacade.md) `get` -- Gets the logger facade used by polyglot callbacks.
- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- Gets the resource this the URLs are associated with.
- `urls`: [ResourceUrlsEditor](/reference/api/typescript/aspire.hosting/resourceurlseditor.md) `get` -- Gets the editor used to manipulate displayed URLs in polyglot callbacks.

## Methods

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