Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Documentation about EndponintManager #44

Open
Yuan-Quan opened this issue Dec 1, 2023 · 0 comments
Open

[Help] Documentation about EndponintManager #44

Yuan-Quan opened this issue Dec 1, 2023 · 0 comments

Comments

@Yuan-Quan
Copy link

Sorry for asking for help with issues.

I'm currently working on a project, in which users upload files, and then serve the processed information of the file on an endpoint.

I've read this guide and this example in it:

@code {

    [Inject]
    IApiProvider ApiProvider { get; set; }

    [Inject]
    IEndpointManager EndpointManager { get; set; }

    ApiDefinition SelectedApi { get; set; }
    string EndpointRoute { get; set; }

    private void Create()
    {
        var endpoint = new EndpointDefinition(EndpointRoute, SelectedApi);
        
        EndpointManager.CreateAndAdd(endpoint);
        
        EndpointManager.Update();
    }

}

I'm very new to ASP.Net dev, I'm not familiar with Razor and Blazor.

I think I've reviewed all the documentation and examples and didn't see more about this EndpointManager.
How could I access/inject this IEndpointManager instance to create an endpoint in my code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant