Skip to content
Discussion options

You must be logged in to vote
builder.Eventing.Subscribe<InitializeResourceEvent>((@event, ct) =>
{
    if (@event.Resource.TryGetAnnotationsOfType<EndpointAnnotation>(out var annotations))
    {
        foreach (var annotation in annotations)
        {
            annotation.TargetHost = "0.0.0.0";
        }
    }

    return Task.CompletedTask;
});

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@davidfowl
Comment options

@davidfowl
Comment options

@KennethHoff
Comment options

@davidfowl
Comment options

Answer selected by MeikelLP
@KennethHoff
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants