Skip to content
DocsTry Aspire
DocsTry

SeqBuilderExtensions Methods

ClassMethods4 members
Provides extension methods for adding Seq server resources to the application model.
AddSeq(IDistributedApplicationBuilder, string, int?)Section titled AddSeq(IDistributedApplicationBuilder, string, int?)extensionIResourceBuilder<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)
{
// ...
}
}
builderIDistributedApplicationBuilderThe Hosting.IDistributedApplicationBuilder.
namestringThe name to give the resource.
portint?optionalThe host port for the Seq server.
This version of the package defaults to the tag of the container image. This overload is not available in polyglot app hosts. Use SeqBuilderExtensions.AddSeq instead.
AddSeq(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?)Section titled AddSeq(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>, int?)extensionIResourceBuilder<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)
{
// ...
}
}
builderIDistributedApplicationBuilderThe Hosting.IDistributedApplicationBuilder.
namestringThe name to give the resource.
adminPasswordIResourceBuilder<ParameterResource>The admin password for Seq. If not provided, authentication will be disabled.
portint?optionalThe 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)extensionIResourceBuilder<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)
{
// ...
}
}
builderIResourceBuilder<SeqResource>The resource builder.
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooloptionalA 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)extensionIResourceBuilder<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)
{
// ...
}
}
builderIResourceBuilder<SeqResource>The resource builder.
namestring?optionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooloptionalA flag that indicates if this is a read-only volume.
IResourceBuilder<SeqResource>The ApplicationModel.IResourceBuilder`1.