dotnetcore.cord.connector 0.0.6

Dotnetcore cord connector package.

Install-Package dotnetcore.cord.connector -Version 0.0.6
dotnet add package dotnetcore.cord.connector --version 0.0.6
<PackageReference Include="dotnetcore.cord.connector" Version="0.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dotnetcore.cord.connector --version 0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

-------------------------------readme-----------------------------
------------------Note: suggestions are always welcome.-----------

cord connector backend

  1. Install pacakge from nuget.

  2. Import dotnetcore.cord.connector namespace.

  3. import using Microsoft.AspNetCore.Http; and inject dependancy of service IHttpContextAccessor in CordConnectorHelper's SetHttpContextAccessor.
    This is require to access http request context of actual request(user request) in library.
    -how to configure in configureService of startup.cs

    var serviceProvider = services.BuildServiceProvider();
    var accessor = serviceProvider.GetService<IHttpContextAccessor>();
    dotnetcore.cord.connector.CordConnectorHelper.SetHttpContextAccessor(accessor);

  4. register DI of HttpclientService as singleton
    services.AddSingleton<dotnetcore.cord.connector.IHttpClientService, dotnetcore.cord.connector.HttpClientService>();

  5. configure require services that you want to use, in startup.cs
    ex. Note: you can simplify the service name by removing namespace name

    services.AddHttpClient<dotnetcore.cord.connector.CordFinanceService>(
    nameof(dotnetcore.cord.connector.CordFinanceService), x =>
    {
    x.BaseAddress = new System.Uri("http://baseurl.com");
    });

    services.AddHttpClient<dotnetcore.cord.connector.CordHealthService>(
    nameof(dotnetcore.cord.connector.CordHealthService), x =>
    {
    x.BaseAddress = new System.Uri("http://baseurl.com");
    });

  6. Then start injecting/consume service
    EX.
    private CordFinanceService _cordFinanceService;
    Constructor(CordFinanceService cordFinanceService)
    {
    _cordFinanceService=cordFinanceService;
    }

Note: suggestions are always welcome.

-------------------------------readme-----------------------------
------------------Note: suggestions are always welcome.-----------

cord connector backend

  1. Install pacakge from nuget.

  2. Import dotnetcore.cord.connector namespace.

  3. import using Microsoft.AspNetCore.Http; and inject dependancy of service IHttpContextAccessor in CordConnectorHelper's SetHttpContextAccessor.
    This is require to access http request context of actual request(user request) in library.
    -how to configure in configureService of startup.cs

    var serviceProvider = services.BuildServiceProvider();
    var accessor = serviceProvider.GetService<IHttpContextAccessor>();
    dotnetcore.cord.connector.CordConnectorHelper.SetHttpContextAccessor(accessor);

  4. register DI of HttpclientService as singleton
    services.AddSingleton<dotnetcore.cord.connector.IHttpClientService, dotnetcore.cord.connector.HttpClientService>();

  5. configure require services that you want to use, in startup.cs
    ex. Note: you can simplify the service name by removing namespace name

    services.AddHttpClient<dotnetcore.cord.connector.CordFinanceService>(
    nameof(dotnetcore.cord.connector.CordFinanceService), x =>
    {
    x.BaseAddress = new System.Uri("http://baseurl.com");
    });

    services.AddHttpClient<dotnetcore.cord.connector.CordHealthService>(
    nameof(dotnetcore.cord.connector.CordHealthService), x =>
    {
    x.BaseAddress = new System.Uri("http://baseurl.com");
    });

  6. Then start injecting/consume service
    EX.
    private CordFinanceService _cordFinanceService;
    Constructor(CordFinanceService cordFinanceService)
    {
    _cordFinanceService=cordFinanceService;
    }

Note: suggestions are always welcome.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.6 81 5/21/2020
0.0.5 56 5/19/2020
0.0.1 41 5/18/2020