API.Manager.Core 1.1.1

dotnet add package API.Manager.Core --version 1.1.1
NuGet\Install-Package API.Manager.Core -Version 1.1.1
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="API.Manager.Core" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add API.Manager.Core --version 1.1.1
#r "nuget: API.Manager.Core, 1.1.1"
#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 API.Manager.Core as a Cake Addin
#addin nuget:?package=API.Manager.Core&version=1.1.1

// Install API.Manager.Core as a Cake Tool
#tool nuget:?package=API.Manager.Core&version=1.1.1

API.Manager.Core

API.Manager.Core for manage availability of REST services.

Implementation

Firstly you should add ApiManagerOptions to configuration file.

Example options

ApiManagerOptions fields meaning;

  • Schema : Schema name of the tables to be created your database. Default value will be "ApiManager" when Schema field was null.
  • CreateTableIfNeccassary : When the CreateTablesIfNeccassary value is true, the application creates a table in the database if available, otherwise application will not create table in the database. Default value will be true when CreateTablesIfNeccassary field was null.
  • HeaderKey : Requests must have a header value to be distinguishable. Default value will be "Channel" when HeaderKey field was null.
  • Channels : Allows to manage the availability of services for multiple platforms. Default value will be "Default" when Channels field was null.
  • IsServiceable : Specifies the default availability of services. Default value will be true when IsServiceable field was null.
  • NotAcceptableMessage : If services are not available, 406 status code is returned and indicates the content message.

Secondly you should add to Service Collection

Example ServiceCollection

Finally you should use OnlyServiceable attribute your controllers

Example attribute

API.Manager.Core Services

API.ManagerServices

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
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.1.1 466 10/29/2021
1.1.0 392 10/24/2021
1.0.0 345 10/13/2021

-Added locker for MemoryCache