.net Standards 2.0 SDK for interacting with Moxi Works API.
Access to NuGet Package Manger or .NET CLI
Install through Package Manager
PM> Install-Package MoxiWorks.Platform -Version 1.2.7
Install through .NET CLI
> dotnet add package MoxiWorks.Platform --version 1.2.7
MVC Application Example Here.
appsettings.json
{
"AppSettings": {
"Secret": "the_secret",
"Identifier": "the_identifier"
}
}
.Net Core requires AppSettings to be passed to the ConfigurationManager in Startup.cs .
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
ConfigurationManager.AppSettings["Secret"] = Configuration["Secret"];
ConfigurationManager.AppSettings["Identifier"] = Configuration["Identifier"];
}
}
Inject services as singletons
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<IMoxiWorksClient, MoxiWorksClient>();
services.AddSingleton<IAgentService, AgentService>();
services.AddSingleton<ICompanyService, CompanyService>();
services.AddSingleton<IOfficeService, OfficeService>();
services.AddMvc();
}
- Uses .NET Stardard 2.0
- NuGet - Dependency Management
- Visual Studio - Coding
- Rider - Coding
For the versions available, see the tags on this repository.
- Anthony Hatch - Initial work - ahatch1490
See also the list of contributors who participated in this project.
This project is licensed under the MIT License