# ActiveMQServerResourceBase

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.ActiveMQ](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.ActiveMQ/ActiveMQServerResourceBase.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithEnvironment`, `IValueProvider`, `IValueWithReferences`

Base class form ActiveMQ Classic and Artemis server resources.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public abstract class ActiveMQServerResourceBase
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithEnvironment,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.ActiveMQ/ActiveMQServerResourceBase`

## Properties

- [ActiveMqSettings](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#activemqsettings) : [IActiveMQSettings](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/iactivemqsettings.md) `get` `ats ignored` -- Gets the ActiveMQ settings.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Describes the connection string format string used for this resource.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- [PasswordParameter](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#passwordparameter) : `ParameterResource` `get` -- Gets the parameter that contains the ActiveMQ server password.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the ActiveMQ server.
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the ActiveMQ server.
- [UserNameParameter](/reference/api/csharp/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/properties.md#usernameparameter) : `ParameterResource?` `get` -- Gets the parameter that contains the ActiveMQ server username.
