You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same concept would be useful for IResourceWithServiceDiscovery and EndpointReference:
/// <summary>/// Injects service discovery information as environment variables from the project resource into the destination resource, using the source resource's name as the service name./// Each endpoint defined on the project resource will be injected using the format "services__{sourceResourceName}__{endpointName}__{endpointIndex}={uriString}."/// </summary>/// <typeparam name="TDestination">The destination resource.</typeparam>/// <param name="builder">The resource where the service discovery information will be injected.</param>/// <param name="source">The resource from which to extract service discovery information.</param>/// <param name="serviceName">An override of the source resource's name for the service name. The resulting service reference will be "Services__serviceName__endpointName__i" if this is not null.</param>/// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns>publicstaticIResourceBuilder<TDestination>WithReference<TDestination>(thisIResourceBuilder<TDestination>builder,IResourceBuilder<IResourceWithServiceDiscovery>source,string?serviceName=null)whereTDestination:IResourceWithEnvironment/// <summary>/// Injects service discovery information from the specified endpoint into the project resource using the source resource's name as the service name./// Each endpoint will be injected using the format "services__{sourceResourceName}__{endpointName}__{endpointIndex}={uriString}."/// </summary>/// <typeparam name="TDestination">The destination resource.</typeparam>/// <param name="builder">The resource where the service discovery information will be injected.</param>/// <param name="endpointReference">The endpoint from which to extract the url.</param>/// <param name="serviceName">An override of the source resource's name for the service name. The resulting service reference will be "Services__serviceName__endpointName__i" if this is not null.</param>/// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns>publicstaticIResourceBuilder<TDestination> WithReference<TDestination>(thisIResourceBuilder<TDestination>builder,EndpointReferenceendpointReference,string?serviceName=null)where TDestination : IResourceWithEnvironment
The text was updated successfully, but these errors were encountered:
For
IResourceWithConnectionString
resources, there's an option for specifying other connection string name other than the resource name:The same concept would be useful for
IResourceWithServiceDiscovery
andEndpointReference
:The text was updated successfully, but these errors were encountered: