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 callsIsoplaneHosting.CreateBuilderfrom Isoplane.AspNetCore and is otherwise ordinary ASP.NET. From Isoplane.Sdk it needs onlyTemplateandInstance, and those only to prepare state ahead of time. Start with Build a small API with ASP.NET Core and EF Core or Bring an existing ASP.NET application. - An application without ASP.NET is one static method marked
[HttpHandler]that takes aRequestand returns aResponse. Everything it uses is in Isoplane.Sdk. Start with Build a small lightweight web service or Handle requests without ASP.NET. - A test project uses Isoplane.Testing to start either kind of application in the sandbox and send it requests:
IsoplaneApplication.StartAsync. Start with 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 keeps the Data Protection keys in the application's Entity Framework Core database:
UseKeysFromDbContext. Start with Keep ASP.NET Core Data Protection keys across builds. - Isoplane.OpenTelemetry sends OpenTelemetry traces to an OTLP endpoint after each response:
AddIsoplaneOtlpExporter. Start with 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, or a[TemplateInitializer]method. - Instance start. The moment an instance starts from the template, before its first request:
Instance.Starting, or an[InstanceStart]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 explains these in full.