.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.15
Install through .NET CLI
> dotnet add package MoxiWorks.Platform --version 1.2.15
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();
}
- .NET Core 2.0
- .NET Framework 4.6.1
- Mono 5.4
- Xamarin.iOS 10.14
- Xamarin.Mac 3.8
- Xamarin.Android 7.5
- Universal Windows Platform vNext
- 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