Skip to content
Docs Try Aspire

SeqBuilderExtensions Methods

Class Methods 4 members
Provides extension methods for adding Seq server resources to the application model.
AddSeq(IDistributedApplicationBuilder, string, int?) Section titled AddSeq(IDistributedApplicationBuilder, string, int?) extension IResourceBuilder<SeqResource>
Adds a Seq server resource to the application model. A container is used for local development.
public static class SeqBuilderExtensions
{
public static IResourceBuilder<SeqResource> AddSeq(
this IDistributedApplicationBuilder builder,
string name,
int? port = null)
{
// ...
}
}
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder.
name string The name to give the resource.
port int? optional The host port for the Seq server.
This version of the package defaults to the tag of the container image.
AddSeq(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?) Section titled AddSeq(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?) extension IResourceBuilder<SeqResource>
Adds a Seq server resource to the application model with authentication enabled. A container is used for local development.
public static class SeqBuilderExtensions
{
public static IResourceBuilder<SeqResource> AddSeq(
this IDistributedApplicationBuilder builder,
string name,
IResourceBuilder<ParameterResource>? adminPassword,
int? port = null)
{
// ...
}
}
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder.
name string The name to give the resource.
adminPassword IResourceBuilder<ParameterResource> The admin password for Seq. If not provided, authentication will be disabled.
port int? optional The host port for the Seq server.
This version of the package defaults to the tag of the container image.
WithDataBindMount(IResourceBuilder<SeqResource>, string, bool) Section titled WithDataBindMount(IResourceBuilder<SeqResource>, string, bool) extension IResourceBuilder<SeqResource>
Adds a bind mount for the data folder to a Seq container resource.
public static class SeqBuilderExtensions
{
public static IResourceBuilder<SeqResource> WithDataBindMount(
this IResourceBuilder<SeqResource> builder,
string source,
bool isReadOnly = false)
{
// ...
}
}
builder IResourceBuilder<SeqResource> The resource builder.
source string The source directory on the host to mount into the container.
isReadOnly bool optional A flag that indicates if this is a read-only mount.
IResourceBuilder<SeqResource> The ApplicationModel.IResourceBuilder`1.
WithDataVolume(IResourceBuilder<SeqResource>, string?, bool) Section titled WithDataVolume(IResourceBuilder<SeqResource>, string?, bool) extension IResourceBuilder<SeqResource>
Adds a named volume for the data folder to a Seq container resource.
public static class SeqBuilderExtensions
{
public static IResourceBuilder<SeqResource> WithDataVolume(
this IResourceBuilder<SeqResource> builder,
string? name = null,
bool isReadOnly = false)
{
// ...
}
}
builder IResourceBuilder<SeqResource> The resource builder.
name string? optional The name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnly bool optional A flag that indicates if this is a read-only volume.
IResourceBuilder<SeqResource> The ApplicationModel.IResourceBuilder`1.