<PackageReference Include="Refit" Version="15.0.0-beta.1" />

Refit.UniqueName

public static class UniqueName
Builds the unique generated type name for a Refit interface. This matches the name Refit uses when registering a client with IHttpClientFactory, so it can be used to resolve or configure that same named client (for example services.AddHttpClient(UniqueName.ForType<T>())).
public static string ForType<T>()

Builds the unique name for the generated implementation of the given interface type.

public static string ForType<T>(object serviceKey)

Builds the unique name for the given interface type and service key.

public static string ForType(Type refitInterfaceType, object serviceKey)

Builds the unique name for the given interface type and service key.

public static string ForType(Type refitInterfaceType)

Builds the unique name for the given interface type.