OCPI.Net
0.13.1
Prefix Reserved
See the version list below for details.
dotnet add package OCPI.Net --version 0.13.1
NuGet\Install-Package OCPI.Net -Version 0.13.1
<PackageReference Include="OCPI.Net" Version="0.13.1" />
paket add OCPI.Net --version 0.13.1
#r "nuget: OCPI.Net, 0.13.1"
// Install OCPI.Net as a Cake Addin #addin nuget:?package=OCPI.Net&version=0.13.1 // Install OCPI.Net as a Cake Tool #tool nuget:?package=OCPI.Net&version=0.13.1
OCPI.Net
OCPI (Open Charge Point Interface) implementation for .Net, built with C#
Currently supported OCPI versions: 2.2.1
Planned versions to support: 2.0
, 2.1.1
, 2.2
Package documentation is expected later.
For now, you can refer to this sample project
Installation
To use in your project, add the nuget package:
dotnet add package OCPI.Net
for now, see sample project for further guidance.
Main features
OCPI Contracts and Validation
This NuGet package provides a comprehensive collection of contract models required for seamless protocol implementation. The package also includes validators specifically designed to validate OCPI contract models, ensuring their accuracy and compliance with the protocol's specifications.
Unrestricted Domain Flexibility:
While the NuGet package equips you with contract models and validation tools for seamless OCPI protocol implementation, it also allows flexibility within your domain logic. Instead of constricting your application's domain logic, the package empowers you to integrate your specific requirements without limitations. This adaptable approach ensures your implementation perfectly aligns with your business needs and unique use cases, while still maintaining compliance with the OCPI protocol.
Asp.Net Core Integration, OCPI Versioning
The package contains all necessary functionality to easily implement OCPI using Asp.Net Core. Make sure your OCPI controllers inherit from the
OcpiContrtoller
class. You can applyOcpiEndpoint
attribute to those controllers that implement OCPI modules, and the package will perform an automated scan of the codebase and fetch necessary data for your OCPI Versions Module.Explore this sample project to see OCPI.Net in action. This project showcases how OCPI.Net integrates seamlessly within an Asp.Net Core application.
OCPI Errors
When working with OCPI, errors can arise. To assist you in managing these errors, we offer predefined OCPI Exceptions. These exceptions make it simple for you to communicate specific errors in line with the protocol. You also have the option to design custom exceptions. This allows you to address distinct scenarios or needs in your OCPI implementation.
Extra
Any contributions, suggestions and feature requests are welcome.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- OCPI.Net.Contracts (>= 0.13.1)
- OCPI.Net.Controllers (>= 0.13.1)
- OCPI.Net.Exceptions (>= 0.13.1)
- OCPI.Net.Validation (>= 0.13.1)
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 |
---|---|---|
0.17.1 | 390 | 10/15/2024 |
0.17.0 | 1,635 | 2/27/2024 |
0.16.3 | 204 | 2/11/2024 |
0.16.2 | 134 | 2/8/2024 |
0.16.1 | 589 | 1/11/2024 |
0.16.0 | 1,262 | 1/10/2024 |
0.15.3 | 463 | 12/26/2023 |
0.15.2 | 188 | 12/6/2023 |
0.15.1 | 1,088 | 10/15/2023 |
0.15.0 | 156 | 10/13/2023 |
0.14.2 | 280 | 10/1/2023 |
0.14.1 | 158 | 9/29/2023 |
0.14.0 | 198 | 9/19/2023 |
0.13.1 | 144 | 9/19/2023 |
0.13.0 | 232 | 9/5/2023 |
0.12.0 | 155 | 9/4/2023 |
0.11.2 | 166 | 8/18/2023 |
0.11.1 | 130 | 8/18/2023 |
0.11.0 | 137 | 8/17/2023 |
0.10.1 | 161 | 8/14/2023 |
0.10.0 | 146 | 8/14/2023 |
0.9.5 | 217 | 8/10/2023 |
0.9.4 | 224 | 7/11/2023 |
0.9.3 | 161 | 7/8/2023 |
0.9.2 | 163 | 7/7/2023 |
0.9.1 | 182 | 7/7/2023 |
0.8.10 | 205 | 6/21/2023 |
0.8.9 | 180 | 6/14/2023 |
0.8.8 | 179 | 5/12/2023 |
0.8.7 | 207 | 4/19/2023 |
0.8.6 | 194 | 4/18/2023 |
0.8.5 | 209 | 4/17/2023 |
0.8.4 | 206 | 4/4/2023 |
0.8.3 | 211 | 4/4/2023 |
0.8.2 | 259 | 3/13/2023 |