-
Hi, I'm trying to create a new resource type following this guide. My goal is to create an I have two questions:
public class ApiResource(string name) : IResourceWithEndpoints, IResourceWithServiceDiscovery
{
public string Name { get; } = name;
public ResourceAnnotationCollection Annotations { get; } = new();
} Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
Shak-o
Jun 16, 2024
Replies: 1 comment 1 reply
-
I created an experimental version with a workaround by treating the new resource as a connection string, but this approach is very clunky. You can find the code here: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My bad, I just found out that
.WithReference("name", new Uri("uri"))
exists, which resolves my goal.