Sankhya 3.0.629

There is a newer version of this package available.
See the version list below for details.
dotnet add package Sankhya --version 3.0.629                
NuGet\Install-Package Sankhya -Version 3.0.629                
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="Sankhya" Version="3.0.629" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sankhya --version 3.0.629                
#r "nuget: Sankhya, 3.0.629"                
#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 Sankhya as a Cake Addin
#addin nuget:?package=Sankhya&version=3.0.629

// Install Sankhya as a Cake Tool
#tool nuget:?package=Sankhya&version=3.0.629                

Sankhya SDK

📊⚙️ Sankhya .NET SDK.

GitHub license Time tracker

Sankhya logo

CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
Sankhya Sankhya NuGet Version Sankhya NuGet Downloads

Features

This SDK implements many of Sankhya's web services. Some of them are called Know Services. If the service you seek is not set in the SDK, you can implement the service request/response independently (and use it on your code or submit a pull request to this repository).

Some Request Wrappers allow you to make some requests easily.

Known Services

Wiki page about KSRW

Sankhya Wrapper

The last-mile operations are done on these wrappers. This class defines all HTTP request/response, login/logout, serialization, and download/upload operations.

Avoid using this class directly from your implementation. Only call its methods if you are extending the SDK's functionality or implementing a new feature. Otherwise, prefer using one of the request wrappers or the Sankhya Context class.


Usage

Service registration (IoC / DI)

This SDK is based on CrispyWaffle toolkit, so you can use its Service Locator feature to register it.

Assuming you are using Crispy Waffle, you can register the Sankhya wrapper in the Bootstrapper.cs file this way:

var connectionSankhya = new Connection(); //Fill in your details
ServiceLocator.Register(() => new SankhyaContext(connectionSankhya), LifeStyle.Singleton);

Later, when you need to access the Sankhya Context in your code, you can just pass it as the constructor's argument or retrieve it from Service Locator

Constructor argument
public class MyClass {

    private readonly SankhyaContext _sankhyaContext;

    public MyClass(SankhyaContext sankyaContext) {
        _sankhyaContext = sankhyaContext ?? throw new ArgumentNullException(nameof(sankhyaContext));
    }
}
Retrieving manually
var sankhyaContext = ServiceLocator.Resolve<SankhyaContext>();

Know Services Wrapper

The KnowServicesRequestWrapper is a static class that can be used anywhere since SankhyaContext is registered through ServiceLocator.

Session management

You can use this to get all active sessions in Sankhya and kill them one by one:

var sessions = KnowServicesRequestWrapper.GetSessions();
foreach (var session in sessions) {
    KnowServicesRequestWrapper.KillSession(session.Id);
}

Support

Please open an issue for support.


Contributing

Refer to CONTRIBUTING.md to learn how to contribute to this project!

Contributors

<table> <tbody> <tr> <td align="center"> <a href="https://github.com/guibranco"> <img src="https://avatars.githubusercontent.com/u/3362854?v=4" width="100;" alt="guibranco"/> <br /> <sub><b>Guilherme Branco Stracini</b></sub> </a> </td> <td align="center"> <a href="https://github.com/fandriyaninkov"> <img src="https://avatars.githubusercontent.com/u/18394528?v=4" width="100;" alt="fandriyaninkov"/> <br /> <sub><b>Fedor Andriyaninkov</b></sub> </a> </td> <td align="center"> <a href="https://github.com/pedrowindisch"> <img src="https://avatars.githubusercontent.com/u/30203228?v=4" width="100;" alt="pedrowindisch"/> <br /> <sub><b>Pedro Henrique</b></sub> </a> </td> <td align="center"> <a href="https://github.com/viktoriussuwandi"> <img src="https://avatars.githubusercontent.com/u/68414300?v=4" width="100;" alt="viktoriussuwandi"/> <br /> <sub><b>Viktorius Suwandi</b></sub> </a> </td> </tr> <tbody> </table>

Bots

<table> <tbody> <tr> <td align="center"> <a href="https://github.com/dependabot[bot]"> <img src="https://avatars.githubusercontent.com/in/29110?v=4" width="100;" alt="dependabot[bot]"/> <br /> <sub><b>dependabot[bot]</b></sub> </a> </td> <td align="center"> <a href="https://github.com/github-actions[bot]"> <img src="https://avatars.githubusercontent.com/in/15368?v=4" width="100;" alt="github-actions[bot]"/> <br /> <sub><b>github-actions[bot]</b></sub> </a> </td> <td align="center"> <a href="https://github.com/stack-file[bot]"> <img src="https://avatars.githubusercontent.com/in/408123?v=4" width="100;" alt="stack-file[bot]"/> <br /> <sub><b>stack-file[bot]</b></sub> </a> </td> <td align="center"> <a href="https://github.com/codefactor-io[bot]"> <img src="https://avatars.githubusercontent.com/in/25603?v=4" width="100;" alt="codefactor-io[bot]"/> <br /> <sub><b>codefactor-io[bot]</b></sub> </a> </td> <td align="center"> <a href="https://github.com/snyk-bot"> <img src="https://avatars.githubusercontent.com/u/19733683?v=4" width="100;" alt="snyk-bot"/> <br /> <sub><b>Snyk bot</b></sub> </a> </td> </tr> <tbody> </table>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Sankhya:

Package Downloads
EditoraInovacao.Sankhya.Entities

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.768 104 9/9/2024
3.0.765 61 9/9/2024
3.0.760 59 9/9/2024
3.0.757 55 9/9/2024
3.0.748 155 9/2/2024
3.0.745 68 9/2/2024
3.0.740 79 8/28/2024
3.0.734 77 8/28/2024
3.0.731 80 8/28/2024
3.0.722 73 8/27/2024
3.0.719 74 8/27/2024
3.0.707 75 8/27/2024
3.0.702 79 8/27/2024
3.0.694 76 8/26/2024
3.0.686 72 8/26/2024
3.0.680 183 8/26/2024
3.0.672 65 8/26/2024
3.0.656 97 8/24/2024
3.0.648 90 8/24/2024
3.0.640 588 8/19/2024
3.0.637 84 8/19/2024
3.0.634 83 8/19/2024
3.0.629 89 8/19/2024
3.0.620 98 8/12/2024
3.0.617 81 8/12/2024
3.0.612 82 8/12/2024
3.0.609 52 8/5/2024
3.0.606 38 8/5/2024
3.0.601 86 7/29/2024
3.0.598 66 7/29/2024
3.0.589 76 7/22/2024
3.0.586 71 7/22/2024
3.0.567 119 7/22/2024
3.0.564 71 7/20/2024
3.0.563 72 7/20/2024
3.0.559 74 7/20/2024
3.0.549 63 7/17/2024
3.0.545 59 7/17/2024
3.0.542 63 7/17/2024
3.0.539 62 7/16/2024
3.0.535 87 7/15/2024
3.0.530 69 7/15/2024
3.0.523 67 7/15/2024
3.0.514 62 7/12/2024
3.0.511 59 7/12/2024
3.0.506 62 7/12/2024
3.0.503 62 7/12/2024
3.0.500 46 7/12/2024
3.0.477 78 7/8/2024
3.0.470 112 7/3/2024
3.0.467 96 7/1/2024
3.0.464 85 7/1/2024
3.0.459 110 6/24/2024
3.0.456 103 6/17/2024
3.0.453 88 6/17/2024
3.0.448 104 6/10/2024
3.0.445 92 6/3/2024
3.0.442 79 6/3/2024
3.0.437 79 5/27/2024
3.0.434 102 5/27/2024
3.0.429 84 5/27/2024
3.0.422 84 5/27/2024
3.0.413 87 5/27/2024
3.0.402 105 5/20/2024
3.0.399 89 5/19/2024
3.0.393 69 5/13/2024
3.0.390 121 5/6/2024
3.0.387 99 4/30/2024
3.0.384 88 4/30/2024
3.0.380 100 4/30/2024
3.0.373 96 4/30/2024
3.0.364 98 4/30/2024
3.0.361 101 4/29/2024
3.0.348 89 4/22/2024
3.0.345 78 4/22/2024
3.0.340 114 4/22/2024
3.0.337 92 4/22/2024
3.0.328 114 4/15/2024
3.0.325 94 4/15/2024
3.0.320 92 4/15/2024
3.0.313 89 4/15/2024
3.0.304 120 4/8/2024
3.0.301 89 4/8/2024
3.0.296 89 4/8/2024
3.0.289 121 4/1/2024
3.0.286 86 4/1/2024
3.0.281 139 3/25/2024
3.0.278 91 3/25/2024
3.0.273 121 3/18/2024
3.0.270 110 3/18/2024
3.0.265 111 3/11/2024
3.0.262 99 3/11/2024
3.0.257 146 3/4/2024
3.0.254 111 2/26/2024
3.0.251 110 2/26/2024
3.0.246 95 2/26/2024
3.0.239 105 2/19/2024
3.0.236 84 2/19/2024
3.0.231 88 2/19/2024
3.0.224 92 2/19/2024
3.0.215 103 2/14/2024
3.0.210 110 2/12/2024
3.0.207 118 2/12/2024
3.0.204 103 2/12/2024
3.0.197 117 2/7/2024
3.0.188 92 2/6/2024
3.0.184 102 2/5/2024
3.0.178 99 1/30/2024
3.0.175 89 1/30/2024
3.0.170 86 1/29/2024
3.0.163 87 1/29/2024
3.0.156 104 1/29/2024
3.0.142 92 1/24/2024
3.0.139 91 1/24/2024
3.0.136 89 1/23/2024
3.0.129 87 1/23/2024
3.0.124 87 1/23/2024
3.0.117 92 1/22/2024
3.0.114 88 1/22/2024
3.0.107 117 1/22/2024
3.0.102 91 1/22/2024
3.0.97 91 1/22/2024
3.0.86 110 1/16/2024
3.0.83 105 1/16/2024
3.0.71 113 1/15/2024
3.0.62 127 1/8/2024
3.0.59 157 1/1/2024
3.0.56 133 12/25/2023
3.0.53 119 12/25/2023
3.0.48 110 12/25/2023
3.0.41 106 12/25/2023
3.0.32 858 12/18/2023
3.0.5 139 12/17/2023
2.0.773 126 12/14/2023
2.0.767 128 12/11/2023
2.0.764 100 12/11/2023
2.0.759 117 12/11/2023
2.0.752 141 12/11/2023
2.0.743 107 12/11/2023
2.0.732 121 12/11/2023
2.0.729 120 12/6/2023
2.0.724 152 12/4/2023
2.0.721 116 12/4/2023
2.0.716 121 12/4/2023
2.0.709 111 12/4/2023
2.0.698 111 11/27/2023
2.0.695 89 11/27/2023
2.0.690 856 11/21/2023
2.0.686 100 11/21/2023
2.0.681 102 11/20/2023
2.0.674 114 11/20/2023
2.0.665 202 11/14/2023
2.0.658 114 11/14/2023
2.0.653 87 11/14/2023
2.0.650 109 11/14/2023
2.0.643 109 11/14/2023
2.0.636 98 11/14/2023
2.0.623 90 11/13/2023
2.0.614 137 11/9/2023
2.0.606 113 11/6/2023
2.0.601 170 10/30/2023
2.0.598 118 10/30/2023
2.0.595 117 10/30/2023
2.0.590 138 10/26/2023
2.0.586 129 10/23/2023
2.0.583 115 10/23/2023
2.0.578 149 10/17/2023
2.0.575 127 10/17/2023
2.0.570 116 10/17/2023
2.0.563 121 10/16/2023
2.0.554 102 10/16/2023
2.0.543 130 10/16/2023
2.0.530 137 10/10/2023
2.0.526 105 10/10/2023
2.0.519 146 10/8/2023
2.0.512 102 10/8/2023
2.0.495 128 10/8/2023
2.0.486 130 10/8/2023
2.0.450 127 10/2/2023
2.0.447 126 10/2/2023
2.0.442 155 9/25/2023
2.0.439 128 9/25/2023
2.0.434 126 9/23/2023
2.0.431 105 9/19/2023
2.0.428 110 9/19/2023
2.0.419 160 9/16/2023
2.0.416 168 9/13/2023
2.0.413 124 9/12/2023
2.0.408 130 9/12/2023
2.0.401 123 9/12/2023
2.0.392 152 9/6/2023
2.0.387 253 9/4/2023
2.0.384 238 8/28/2023
2.0.381 132 8/28/2023
2.0.376 192 8/24/2023
2.0.373 365 8/14/2023
2.0.344 227 8/9/2023
2.0.337 158 8/9/2023
2.0.332 159 8/9/2023
2.0.325 339 7/29/2023
2.0.322 161 7/29/2023
2.0.315 125 7/29/2023
2.0.311 225 7/24/2023
2.0.308 154 7/24/2023
2.0.302 219 7/17/2023
2.0.299 145 7/17/2023
2.0.284 154 7/12/2023
2.0.272 255 7/10/2023
2.0.265 174 7/10/2023
2.0.256 268 7/3/2023
2.0.253 157 7/3/2023
2.0.248 167 7/3/2023
2.0.241 313 6/19/2023
2.0.238 154 6/19/2023
2.0.233 311 6/15/2023
2.0.230 201 6/15/2023
2.0.225 198 6/15/2023
2.0.218 247 6/6/2023
2.0.215 226 6/5/2023
2.0.210 155 6/5/2023
2.0.203 163 6/5/2023
2.0.191 474 5/22/2023
2.0.188 168 5/22/2023
2.0.183 276 5/15/2023
2.0.180 213 5/15/2023
2.0.175 280 5/8/2023
2.0.168 164 5/8/2023
2.0.163 400 5/4/2023
2.0.160 179 5/3/2023
2.0.155 417 4/10/2023
2.0.152 212 4/10/2023
2.0.147 205 4/9/2023
2.0.141 215 4/4/2023
2.0.136 371 4/3/2023
2.0.133 235 4/3/2023
2.0.128 326 3/27/2023
2.0.125 224 3/27/2023
2.0.122 271 3/27/2023
2.0.119 214 3/27/2023
2.0.111 249 3/26/2023
2.0.108 268 3/22/2023
2.0.103 255 3/21/2023
2.0.98 242 3/21/2023
2.0.91 351 3/5/2023
2.0.86 244 3/5/2023
2.0.82 251 3/5/2023
2.0.76 267 3/3/2023
2.0.75 248 3/3/2023
2.0.65 270 2/28/2023
2.0.62 319 1/30/2023
2.0.59 414 1/23/2023
2.0.56 280 1/23/2023
2.0.53 289 1/19/2023
2.0.52 299 1/17/2023
2.0.51 584 1/16/2023
2.0.50 324 1/16/2023
2.0.47 306 1/16/2023
2.0.40 313 1/16/2023
2.0.35 308 1/16/2023
2.0.29 304 1/16/2023
2.0.26 318 1/16/2023
2.0.20 337 1/16/2023
1.0.2 1,513 9/22/2019