Partilhar via


SeqBuilderExtensions.AddSeq Method

Definition

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 tag of the container image.

Applies to