---
updatedAt: 2025-06-19T12:39:43.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# Getting Started With The C# Middleware API

Endpoints are added to an ASP.NET Core web app project when the [Directscale Middleware is added](https://developers.directscale.com/docs/getting-started-with-the-c-sharp-library#add-directscale-middleware). These endpoints help with the logistic operations of [Hosting a Client Web Application](https://developers.directscale.com/docs/writing-and-hosting-client-code).

# Auto-Configuration

***

Endpoints are added to allow the logistical operations of [Configuring a Client Web Application](https://developers.directscale.com/docs/writing-and-hosting-client-code#configuring-client-endpoints-with-directscale) when deploying a Client Web Application programmatically.

The following endpoints can be used to [Configuring a Client Web Application](https://developers.directscale.com/docs/writing-and-hosting-client-code#configuring-client-endpoints-with-directscale).

### Two-Step Configuration Process

> 👍 Using The Client Extension?
>
> The [Client Extension](https://developers.directscale.com/docs/what-is-the-client-extension) uses the two-step configuration to automatically update configurations during a deployment. Learn more by reading about [Deploying The Client Extension](https://developers.directscale.com/docs/deploying-a-build-version#deployment-steps).

Using these two endpoints allows a new version to be deployed with no downtime.

#### 1: [Remove Deleted Registrations](https://developers.directscale.com/reference/remove-deleted-registrations)

> Call this endpoint on a new version of code before traffic is sent to it. This avoids errors by making sure any endpoints that no longer exist are not configured to be called.

#### 2: [Update All Registrations](https://developers.directscale.com/reference/update-all-registrations)

> Call this endpoint on the new version of code after traffic is sent to it. This avoids errors by making sure any endpoints that did not exist until the new version was deployed were not configured to be called until it was fully deployed.

### Alternate Configuration Process

If the [Two-Step Configuration](#two-step-configuration) process does not work for your deployment strategy you may want to use the [Get Routes](https://developers.directscale.com/reference/get-routes) Endpoint. This endpoint provides all the relative paths that must be configured with Directscale for the customizations written in the code to take effect. Using this information and the [RegistrationService](https://helpabstractions.directscale.com/api/DirectScale.Disco.Extension.Services.IRegistrationService.html) allows you to [Configure a Client Web Application](https://developers.directscale.com/docs/writing-and-hosting-client-code#configuring-client-endpoints-with-directscale) programmatically.

<br/>

# Version Information

***

It can be helpful to know what version is actually deployed to confirm a deployment was truly successful. Use the [Get Extension Version](https://developers.directscale.com/reference/api-extension-version) endpoint to know what version is deployed.