Share via


SeqBuilderExtensions.AddSeq Method

Definition

Overloads

AddSeq(IDistributedApplicationBuilder, String, Nullable<Int32>)

Adds a Seq server resource to the application model. A container is used for local development.

AddSeq(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>, Nullable<Int32>)

Adds a Seq server resource to the application model with authentication enabled. A container is used for local development.

AddSeq(IDistributedApplicationBuilder, String, Nullable<Int32>)

Source:
SeqBuilderExtensions.cs
Source:
SeqBuilderExtensions.cs
Source:
SeqBuilderExtensions.cs
Source:
SeqBuilderExtensions.cs
Source:
SeqBuilderExtensions.cs
Source:
SeqBuilderExtensions.cs

Adds a Seq server resource to the application model. A container is used for local development.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SeqResource> AddSeq(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, int? port = default);
static member AddSeq : Aspire.Hosting.IDistributedApplicationBuilder * string * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SeqResource>
<Extension()>
Public Function AddSeq (builder As IDistributedApplicationBuilder, name As String, Optional port As Nullable(Of Integer) = Nothing) As IResourceBuilder(Of SeqResource)

Parameters

name
String

The name to give the resource.

port
Nullable<Int32>

The host port for the Seq server.

Returns

Remarks

This version of the package defaults to the <inheritdoc cref="F:Aspire.Hosting.SeqContainerImageTags.Tag"></inheritdoc> tag of the <inheritdoc cref="F:Aspire.Hosting.SeqContainerImageTags.Image"></inheritdoc> container image.

Applies to

AddSeq(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>, Nullable<Int32>)

Source:
SeqBuilderExtensions.cs

Adds a Seq server resource to the application model with authentication enabled. A container is used for local development.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SeqResource> AddSeq(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource>? adminPassword, int? port = default);
static member AddSeq : Aspire.Hosting.IDistributedApplicationBuilder * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.SeqResource>
<Extension()>
Public Function AddSeq (builder As IDistributedApplicationBuilder, name As String, adminPassword As IResourceBuilder(Of ParameterResource), Optional port As Nullable(Of Integer) = Nothing) As IResourceBuilder(Of SeqResource)

Parameters

name
String

The name to give the resource.

adminPassword
IResourceBuilder<ParameterResource>

The admin password for Seq. If not provided, authentication will be disabled.

port
Nullable<Int32>

The host port for the Seq server.

Returns

Remarks

This version of the package defaults to the <inheritdoc cref="F:Aspire.Hosting.SeqContainerImageTags.Tag"></inheritdoc> tag of the <inheritdoc cref="F:Aspire.Hosting.SeqContainerImageTags.Image"></inheritdoc> container image.

Applies to