---
title: "Instance.Starting event"
canonical: https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Instance/Starting
---

# Instance.Starting event

Raised once in each instance, before the instance handles its first request.

```csharp
public static event Func<Task>? Starting;
```

## Remarks

Subscribe while the application starts: in `Program.cs` before `await app.RunAsync()`, or in a callback subscribed to [`Initializing`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Template/Initializing). Subscriptions are saved in the template, so every instance runs them. Callbacks are awaited one at a time, in the order they subscribed. An exception from a callback fails the request the instance was started for. The event is not raised again in an instance Isoplane suspends and later resumes, because such an instance keeps its own memory.

## See Also

- class [Instance](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Instance)
- namespace [Isoplane](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk)
