> ## Documentation Index
> Fetch the complete documentation index at: https://docs.speckle.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# Server

> client.Server — check what features your Speckle Server supports

Use **`client.Server`** before calling workspace APIs — especially on self-hosted servers where workspace support may be disabled.

**Read next:** [Handling server capabilities](/developers/sdks/dotnet/guides/handling-server-capabilities)

## Methods

<ResponseField name="IsWorkspaceEnabled" type="Task<bool> IsWorkspaceEnabled(CancellationToken cancellationToken = default)">
  Returns whether the connected server has the workspaces module enabled. Use this to guard calls to [`client.Workspace`](/developers/sdks/dotnet/api-reference/resources/workspace) and workspace-scoped methods on `client.ActiveUser`.
</ResponseField>

## Usage

```csharp Example lines icon="https://mintcdn.com/speckle/VtRPWzmN-ULoLfIv/images/developers/sdks/csharp.svg?fit=max&auto=format&n=VtRPWzmN-ULoLfIv&q=85&s=f2970e3b8bd4a2c7899b46211a42f251" theme={null}
if (await client.Server.IsWorkspaceEnabled())
{
    var workspaces = await client.ActiveUser.GetWorkspaces();
    // ...
}
else
{
    // Personal (non-workspace) server, e.g. a self-hosted instance
    var projects = await client.ActiveUser.GetProjects();
}
```

## FAQ

<AccordionGroup>
  <Accordion title="SpeckleGraphQLWorkspaceNotEnabledException on GetWorkspaces">
    The connected server does not have workspaces enabled (arrives wrapped in an `AggregateException`). Call `IsWorkspaceEnabled()` and use `client.ActiveUser.GetProjects()` for personal-project servers.
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={3}>
  <Card title="Core concepts" icon="book" href="/developers/sdks/dotnet/concepts/overview">
    Personal vs workspace servers
  </Card>

  <Card title="Handling server capabilities" icon="shield-check" href="/developers/sdks/dotnet/guides/handling-server-capabilities">
    Check-before-call patterns
  </Card>

  <Card title="WorkspaceResource" icon="building" href="/developers/sdks/dotnet/api-reference/resources/workspace">
    Workspace queries this check gates
  </Card>
</CardGroup>
