Skip to content
No description, website, or topics provided.
C# HTML
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MoxiWorks
.gitattributes
.gitignore
README.md

README.md

moxiworks-dotnet Codacy Badge

.net Standards 2.0 SDK for interacting with Moxi Works API.

Getting Started

Prerequisites

Access to NuGet Package Manger or .NET CLI

Installing

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

ASP.NET Core

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();

}

Platforms

  • .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

Built With

Versioning

For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License

You can’t perform that action at this time.