Aspire Port–part 1–idea

I work cu Aspire, One of the problem that I see is that some of extensions are needing a port – and , if not, they are allocating a random one. I need sometimes to have the SAME number port allocated every time. But I got tired to hardcode the port – and I wish to be the same no matter how many Aspire projects I create with same resource ( e.g.

builder.AddSqlite(“sqlite”)
.WithSqliteWeb()

Also one other need is to transfer to another application as environment variable to be read by another application  – and again, I do not want to hardcode.

Also , this number should be calculated deterministically every time from  a name – and the problem is GetHashCode is not the same  Why is string.GetHashCode() different each time I run my program in .NET Core?

The solving – next time ( for the impatients, https://github.com/ignatandrei/aspireExtensions )



Posted

in

,

by

Tags: