---
title: "SDK API reference"
canonical: https://isoplane.dev/docs/reference/sdk
---

# SDK API reference

The types and members of the Isoplane packages an application uses. Signatures and descriptions are generated from the compiled assemblies and their documentation comments, for the source version used to build this documentation.

## Which package you need

An application is written in one of two ways, and tested with a third package.

- **An ASP.NET application** has a `Program.cs`. It calls [`IsoplaneHosting.CreateBuilder`](https://isoplane.dev/docs/reference/sdk/Isoplane.AspNetCore/Isoplane.AspNetCore/IsoplaneHosting/CreateBuilder) from [Isoplane.AspNetCore](https://isoplane.dev/docs/reference/sdk/Isoplane.AspNetCore) and is otherwise ordinary ASP.NET. From [Isoplane.Sdk](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk) it needs only [`Template`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Template) and [`Instance`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Instance), and those only to prepare state ahead of time. Start with [Build a small API with ASP.NET Core and EF Core](https://isoplane.dev/docs/tutorials/build-an-api) or [Bring an existing ASP.NET application](https://isoplane.dev/docs/how-to/onboard-an-application).
- **An application without ASP.NET** is one static method marked [`[HttpHandler]`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/HttpHandlerAttribute) that takes a [`Request`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Request) and returns a [`Response`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Response). Everything it uses is in [Isoplane.Sdk](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk). Start with [Build a small lightweight web service](https://isoplane.dev/docs/tutorials/build-a-web-service) or [Handle requests without ASP.NET](https://isoplane.dev/docs/how-to/handle-requests-without-aspnet).
- **A test project** uses [Isoplane.Testing](https://isoplane.dev/docs/reference/sdk/Isoplane.Testing) to start either kind of application in the sandbox and send it requests: [`IsoplaneApplication.StartAsync`](https://isoplane.dev/docs/reference/sdk/Isoplane.Testing/Isoplane.Testing/IsoplaneApplication/StartAsync). Start with [Test an application](https://isoplane.dev/docs/how-to/test-an-application).

Other packages each adapt one library an ASP.NET application may use. They are separate so that an application without that library never restores it.

- **[Isoplane.AspNetCore.DataProtection.EntityFrameworkCore](https://isoplane.dev/docs/reference/sdk/Isoplane.AspNetCore.DataProtection.EntityFrameworkCore)** keeps the Data Protection keys in the application's Entity Framework Core database: [`UseKeysFromDbContext`](https://isoplane.dev/docs/reference/sdk/Isoplane.AspNetCore.DataProtection.EntityFrameworkCore/Isoplane.AspNetCore.DataProtection.EntityFrameworkCore/DataProtectionDbContextKeys/UseKeysFromDbContext). Start with [Keep ASP.NET Core Data Protection keys across builds](https://isoplane.dev/docs/how-to/keep-data-protection-keys).
- **[Isoplane.OpenTelemetry](https://isoplane.dev/docs/reference/sdk/Isoplane.OpenTelemetry)** sends OpenTelemetry traces to an OTLP endpoint after each response: [`AddIsoplaneOtlpExporter`](https://isoplane.dev/docs/reference/sdk/Isoplane.OpenTelemetry/Isoplane.OpenTelemetry/IsoplaneOtlpExporterExtensions/AddIsoplaneOtlpExporter). Start with [OpenTelemetry](https://isoplane.dev/docs/concepts/library-compatibility#opentelemetry).

## Words these pages use

- **Instance.** One running copy of your application. Isoplane scales instances with traffic up to the application’s instance limit and may discard one between requests, so memory is not a place to keep anything that must last.
- **Template.** Isoplane starts your application once ahead of time and saves its memory. That saved memory is the template, and every instance starts as a copy of it. Work done before the template is saved is done once; state created then is identical in every instance.
- **Template initialization.** The start-up work that runs before the template is saved: [`Template.Initializing`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Template/Initializing), or a [`[TemplateInitializer]`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/TemplateInitializerAttribute) method.
- **Instance start.** The moment an instance starts from the template, before its first request: [`Instance.Starting`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/Instance/Starting), or an [`[InstanceStart]`](https://isoplane.dev/docs/reference/sdk/Isoplane.Sdk/Isoplane/InstanceStartAttribute) method. State that must differ between instances is created here.
- **Sandbox.** The isolated environment your application runs in, on your machine and when deployed. It reaches the network and its settings only through Isoplane.

[The application lifecycle](https://isoplane.dev/docs/concepts/application-lifecycle) explains these in full.
