---
updatedAt: 2025-06-16T23:19:34.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# Creating a Service

This example is a simple service that uses a regular expression to verify that an Associate's email address format is valid.

> ✅
>
> This service example code comes from .NET docs, tweaked for the [Client Extension](https://developers.directscale.com/docs/what-is-the-client-extension). Learn more in [How to verify that strings are in valid email format](https://docs.microsoft.com/en-us/dotnet/standard/base-types/how-to-verify-that-strings-are-in-valid-email-format)

***

***

# Building the Service

<TutorialTile title="Creating a Basic Service" id="623ca27c22b1770979b00be7" slug="creating-a-basic-service" backgroundColor="#018FF4" emoji="🦉" link="https://developers.directscale.com/v1.0/recipes/creating-a-basic-service" />

***

***

# Using the Service

This example uses the service we just created to check if an email is valid and then checks if it is available.

<TutorialTile title="Using a Basic Service" emoji="🦉" backgroundColor="#018FF4" slug="using-a-basic-service" id="623ca27c22b1770979b00be8" link="https://developers.directscale.com/v1.0/recipes/using-a-basic-service" />