CheddarGetter.CollabCoders 1.0.4

dotnet add package CheddarGetter.CollabCoders --version 1.0.4                
NuGet\Install-Package CheddarGetter.CollabCoders -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CheddarGetter.CollabCoders" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CheddarGetter.CollabCoders --version 1.0.4                
#r "nuget: CheddarGetter.CollabCoders, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CheddarGetter.CollabCoders as a Cake Addin
#addin nuget:?package=CheddarGetter.CollabCoders&version=1.0.4

// Install CheddarGetter.CollabCoders as a Cake Tool
#tool nuget:?package=CheddarGetter.CollabCoders&version=1.0.4                

CheddarGetter .Net Core API Services Wrapper

Uses .Net Core Dependancy Injection for ChaddarGetter API (extended from John Siladie's nofxsnap/CheddarGetter repo). API wrapper has implemented all of CheddarGetter's APIs as of 10/21/2017.

1) Install required NuGet packages

To use .NET Core dependency injection with options, these two packages are needed:

Microsoft.Extensions.DependencyInjection - this is the package for the core dependency injection features, such as the ServiceCollection class.

Microsoft.Extensions.Options – this package contains the IOptions interface, the OptionsManager for instantiating the options, as well as the extension methods AddOptions and Configure.

2) Install CheddarGetter.CollabCoders NuGet Package

https://www.nuget.org/packages/CheddarGetter.CollabCoders

3) Add the CheddarGetter namespace of your Startup.cs

using CheddarGetter;

4) Register the CheddarGetter Service with dependancy injection in the ConfigureServices portion of your Startup.cs:

public void ConfigureServices(IServiceCollection services)
{
    services.AddCheddarGetterService(options =>
    {
	options.productCode = "YourCheddarGetterProductCode";
	options.username = "YourCheddarGetterUserName";
	options.password = "YourCheddarGetterPassword";
    });
}

5) Add the CheddarGetter Service to you constructor on your Controller or Services

using CheddarGetter;

public class YourController
{
    //Constructor
    private readonly ICheddarGetterService _cheddarGetterService;
    
    public YourController(ICheddarGetterService cheddarGetterService)
    {
    	_cheddarGetterService = cheddarGetterService;
    }
}

6) Add the CheddarGetter Service interface to you constructor on your Controller or Services

public class YourController
{
    //Constructor
    private readonly ICheddarGetterService _cheddarGetterService;

    public YourController(ICheddarGetterService cheddarGetterService)
    {
        _cheddarGetterService = cheddarGetterService;
    }

    //Sample Usage of CheddarGetterService
    public async Task<IActionResult> UpdateCustomer(SomeSampleUserModel user) 
    {
        var customer = new Customer
	{
	    Code = user.userId.ToString(),
	    FirstName = user.firstName,
	    LastName = user.lastName,
	    Email = user.email,
	    Company = user.Company,
	    RemoteAddress = Request.HttpContext.Connection.RemoteIpAddress,
	    AdditionalMetaData = "metaData[someCustomParam]=someCustomValue&metaData[someOtherParam]=SomeOtherValue"
        };
	await _cheddarGetterService.CreateCustomer(customer);
	return Json(customer);
    }
}

NOTE: CheddarGetter allows you to store custom meta data for each customer. The Customer and CustomerPost models have an extra string parameter called AdditionalMetaData, which you can use to pass an array of meta data parameters in a standard QueryString format (like in the example above).

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 1,698 11/10/2017
1.0.3 1,000 11/10/2017
1.0.2 1,089 10/21/2017
1.0.1 1,189 9/30/2017

Updated more changes to CG API