Skip to content

Client Packages used for communicating with services for goSolve's back-end services.

License

Notifications You must be signed in to change notification settings

gosolve-org/Clients

Repository files navigation

goSolve - Clients

This repository includes the client packages used for communicating from goSolve back-end services to other (goSolve or external) services. Clients can include HttpClients, SftpClients, BlobClients, etc.

Adding a HttpClient to your project

To register a HttpClient in your Program.cs for dependency injection, use the following extension method (Book api as example):

builder.Services.AddInternalHttpClient<IBookHttpClient, BookHttpClient>(builder.Configuration, "book");

And add the following to your appsettings.json and appsettings.Development.json:

{
    "HttpClients": [
        {
            "Name": "book",
            "BaseAddressUri": "<base address of the api>", // Example: "https://localhost:5001/" (trailing slash is required!)
            "Accept": "application/json" // (Optional, default value: "application/json")
        }
    ]
}

License

License: AGPL v3
goSolve is open-source. We use the GNU AGPLv3 licensing strategy.

About

Client Packages used for communicating with services for goSolve's back-end services.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages