Sankhya 3.1.108

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

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

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, I 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/penify-dev[bot]"> <img src="https://avatars.githubusercontent.com/in/399279?v=4" width="100;" alt="penify-dev[bot]"/> <br /> <sub><b>penify-dev[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/gitauto-ai[bot]"> <img src="https://avatars.githubusercontent.com/in/844909?v=4" width="100;" alt="gitauto-ai[bot]"/> <br /> <sub><b>gitauto-ai[bot]</b></sub> </a> </td> </tr> <tr> <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 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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
5.0.38 0 1/13/2025
5.0.35 0 1/13/2025
5.0.32 0 1/13/2025
5.0.28 65 1/13/2025
5.0.19 22 1/13/2025
5.0.8 23 1/13/2025
4.1.106 129 1/6/2025
4.1.103 76 1/6/2025
4.1.98 65 1/6/2025
4.1.91 77 1/6/2025
4.1.84 83 12/31/2024
4.1.80 75 12/30/2024
4.1.77 81 12/30/2024
4.1.65 141 12/30/2024
4.1.57 81 12/30/2024
4.1.52 81 12/27/2024
4.1.47 84 12/27/2024
4.0.34 79 12/27/2024
4.0.25 85 12/27/2024
4.0.15 80 12/27/2024
4.0.8 88 12/27/2024
3.1.134 79 12/27/2024
3.1.126 216 12/23/2024
3.1.123 78 12/23/2024
3.1.118 72 12/23/2024
3.1.108 219 12/16/2024
3.1.103 81 12/16/2024
3.1.98 146 12/9/2024
3.1.95 84 12/9/2024
3.1.92 72 12/9/2024
3.1.83 270 12/2/2024
3.1.80 87 12/2/2024
3.1.75 82 12/2/2024
3.1.66 89 12/2/2024
3.1.61 273 11/25/2024
3.1.58 83 11/25/2024
3.1.53 93 11/25/2024
3.1.42 87 11/18/2024
3.1.37 219 11/18/2024
3.1.32 81 11/18/2024
3.1.16 84 11/17/2024
3.0.969 103 11/12/2024
3.0.950 88 11/12/2024
3.0.947 97 11/12/2024
3.0.938 256 11/11/2024
3.0.926 225 11/4/2024
3.0.923 84 11/4/2024
3.0.916 184 10/28/2024
3.0.913 82 10/28/2024
3.0.910 83 10/28/2024
3.0.889 220 10/21/2024
3.0.886 95 10/21/2024
3.0.883 80 10/21/2024
3.0.878 87 10/21/2024
3.0.869 111 10/19/2024
3.0.865 118 10/18/2024
3.0.862 126 10/18/2024
3.0.856 114 10/18/2024
3.0.845 96 10/18/2024
3.0.842 213 10/14/2024
3.0.837 105 10/12/2024
3.0.822 84 10/7/2024
3.0.819 104 10/2/2024
3.0.816 96 10/2/2024
3.0.811 98 10/2/2024
3.0.808 94 10/2/2024
3.0.805 100 10/2/2024
3.0.794 317 9/23/2024
3.0.791 97 9/23/2024
3.0.786 89 9/23/2024
3.0.782 128 9/17/2024
3.0.778 235 9/16/2024
3.0.775 115 9/16/2024
3.0.768 188 9/9/2024
3.0.765 106 9/9/2024
3.0.760 107 9/9/2024
3.0.757 100 9/9/2024
3.0.748 225 9/2/2024
3.0.745 116 9/2/2024
3.0.740 122 8/28/2024
3.0.734 113 8/28/2024
3.0.731 103 8/28/2024
3.0.722 113 8/27/2024
3.0.719 109 8/27/2024
3.0.707 92 8/27/2024
3.0.702 117 8/27/2024
3.0.694 112 8/26/2024
3.0.686 108 8/26/2024
3.0.680 246 8/26/2024
3.0.672 100 8/26/2024
3.0.656 137 8/24/2024
3.0.648 133 8/24/2024
3.0.640 731 8/19/2024
3.0.637 119 8/19/2024
3.0.634 118 8/19/2024
3.0.629 118 8/19/2024
3.0.620 133 8/12/2024
3.0.617 119 8/12/2024
3.0.612 118 8/12/2024
3.0.609 105 8/5/2024
3.0.606 73 8/5/2024
3.0.601 127 7/29/2024
3.0.598 97 7/29/2024
3.0.589 108 7/22/2024
3.0.586 102 7/22/2024
3.0.567 152 7/22/2024
3.0.564 87 7/20/2024
3.0.563 94 7/20/2024
3.0.559 113 7/20/2024
3.0.549 98 7/17/2024
3.0.545 96 7/17/2024
3.0.542 99 7/17/2024
3.0.539 79 7/16/2024
3.0.535 115 7/15/2024
3.0.530 108 7/15/2024
3.0.523 105 7/15/2024
3.0.514 96 7/12/2024
3.0.511 91 7/12/2024
3.0.506 94 7/12/2024
3.0.503 78 7/12/2024
3.0.500 78 7/12/2024
3.0.477 106 7/8/2024
3.0.470 128 7/3/2024
3.0.467 126 7/1/2024
3.0.464 114 7/1/2024
3.0.459 142 6/24/2024
3.0.456 137 6/17/2024
3.0.453 102 6/17/2024
3.0.448 134 6/10/2024
3.0.445 106 6/3/2024
3.0.442 108 6/3/2024
3.0.437 93 5/27/2024
3.0.434 142 5/27/2024
3.0.429 116 5/27/2024
3.0.422 113 5/27/2024
3.0.413 114 5/27/2024
3.0.402 137 5/20/2024
3.0.399 124 5/19/2024
3.0.393 99 5/13/2024
3.0.390 152 5/6/2024
3.0.387 121 4/30/2024
3.0.384 118 4/30/2024
3.0.380 131 4/30/2024
3.0.373 135 4/30/2024
3.0.364 130 4/30/2024
3.0.361 134 4/29/2024
3.0.348 121 4/22/2024
3.0.345 106 4/22/2024
3.0.340 146 4/22/2024
3.0.337 122 4/22/2024
3.0.328 141 4/15/2024
3.0.325 123 4/15/2024
3.0.320 104 4/15/2024
3.0.313 118 4/15/2024
3.0.304 150 4/8/2024
3.0.301 117 4/8/2024
3.0.296 118 4/8/2024
3.0.289 145 4/1/2024
3.0.286 117 4/1/2024
3.0.281 160 3/25/2024
3.0.278 121 3/25/2024
3.0.273 145 3/18/2024
3.0.270 140 3/18/2024
3.0.265 133 3/11/2024
3.0.262 131 3/11/2024
3.0.257 158 3/4/2024
3.0.254 124 2/26/2024
3.0.251 164 2/26/2024
3.0.246 120 2/26/2024
3.0.239 115 2/19/2024
3.0.236 115 2/19/2024
3.0.231 114 2/19/2024
3.0.224 122 2/19/2024
3.0.215 131 2/14/2024
3.0.210 136 2/12/2024
3.0.207 150 2/12/2024
3.0.204 132 2/12/2024
3.0.197 146 2/7/2024
3.0.188 127 2/6/2024
3.0.184 129 2/5/2024
3.0.178 125 1/30/2024
3.0.175 120 1/30/2024
3.0.170 110 1/29/2024
3.0.163 115 1/29/2024
3.0.156 131 1/29/2024
3.0.142 121 1/24/2024
3.0.139 113 1/24/2024
3.0.136 116 1/23/2024
3.0.129 115 1/23/2024
3.0.124 113 1/23/2024
3.0.117 126 1/22/2024
3.0.114 121 1/22/2024
3.0.107 149 1/22/2024
3.0.102 115 1/22/2024
3.0.97 118 1/22/2024
3.0.86 133 1/16/2024
3.0.83 129 1/16/2024
3.0.71 135 1/15/2024
3.0.62 137 1/8/2024
3.0.59 185 1/1/2024
3.0.56 147 12/25/2023
3.0.53 146 12/25/2023
3.0.48 139 12/25/2023
3.0.41 119 12/25/2023
3.0.32 1,103 12/18/2023
3.0.5 153 12/17/2023
2.0.773 137 12/14/2023
2.0.767 159 12/11/2023
2.0.764 132 12/11/2023
2.0.759 153 12/11/2023
2.0.752 170 12/11/2023
2.0.743 121 12/11/2023
2.0.732 150 12/11/2023
2.0.729 150 12/6/2023
2.0.724 181 12/4/2023
2.0.721 128 12/4/2023
2.0.716 135 12/4/2023
2.0.709 143 12/4/2023
2.0.698 125 11/27/2023
2.0.695 118 11/27/2023
2.0.690 1,091 11/21/2023
2.0.686 138 11/21/2023
2.0.681 132 11/20/2023
2.0.674 144 11/20/2023
2.0.665 234 11/14/2023
2.0.658 144 11/14/2023
2.0.653 131 11/14/2023
2.0.650 143 11/14/2023
2.0.643 140 11/14/2023
2.0.636 123 11/14/2023
2.0.623 110 11/13/2023
2.0.614 168 11/9/2023
2.0.606 144 11/6/2023
2.0.601 200 10/30/2023
2.0.598 131 10/30/2023
2.0.595 144 10/30/2023
2.0.590 153 10/26/2023
2.0.586 161 10/23/2023
2.0.583 143 10/23/2023
2.0.578 179 10/17/2023
2.0.575 164 10/17/2023
2.0.570 153 10/17/2023
2.0.563 153 10/16/2023
2.0.554 117 10/16/2023
2.0.543 165 10/16/2023
2.0.530 152 10/10/2023
2.0.526 135 10/10/2023
2.0.519 178 10/8/2023
2.0.512 115 10/8/2023
2.0.495 155 10/8/2023
2.0.486 162 10/8/2023
2.0.450 156 10/2/2023
2.0.447 163 10/2/2023
2.0.442 185 9/25/2023
2.0.439 159 9/25/2023
2.0.434 142 9/23/2023
2.0.431 121 9/19/2023
2.0.428 126 9/19/2023
2.0.419 190 9/16/2023
2.0.416 184 9/13/2023
2.0.413 150 9/12/2023
2.0.408 165 9/12/2023
2.0.401 137 9/12/2023
2.0.392 168 9/6/2023
2.0.387 313 9/4/2023
2.0.384 252 8/28/2023
2.0.381 165 8/28/2023
2.0.376 224 8/24/2023
2.0.373 396 8/14/2023
2.0.344 255 8/9/2023
2.0.337 188 8/9/2023
2.0.332 188 8/9/2023
2.0.325 373 7/29/2023
2.0.322 192 7/29/2023
2.0.315 139 7/29/2023
2.0.311 256 7/24/2023
2.0.308 185 7/24/2023
2.0.302 235 7/17/2023
2.0.299 159 7/17/2023
2.0.284 197 7/12/2023
2.0.272 282 7/10/2023
2.0.265 205 7/10/2023
2.0.256 282 7/3/2023
2.0.253 189 7/3/2023
2.0.248 197 7/3/2023
2.0.241 344 6/19/2023
2.0.238 183 6/19/2023
2.0.233 348 6/15/2023
2.0.230 228 6/15/2023
2.0.225 229 6/15/2023
2.0.218 279 6/6/2023
2.0.215 261 6/5/2023
2.0.210 169 6/5/2023
2.0.203 194 6/5/2023
2.0.191 487 5/22/2023
2.0.188 199 5/22/2023
2.0.183 291 5/15/2023
2.0.180 246 5/15/2023
2.0.175 310 5/8/2023
2.0.168 179 5/8/2023
2.0.163 430 5/4/2023
2.0.160 211 5/3/2023
2.0.155 442 4/10/2023
2.0.152 225 4/10/2023
2.0.147 237 4/9/2023
2.0.141 228 4/4/2023
2.0.136 384 4/3/2023
2.0.133 265 4/3/2023
2.0.128 342 3/27/2023
2.0.125 240 3/27/2023
2.0.122 299 3/27/2023
2.0.119 241 3/27/2023
2.0.111 277 3/26/2023
2.0.108 303 3/22/2023
2.0.103 281 3/21/2023
2.0.98 256 3/21/2023
2.0.91 363 3/5/2023
2.0.86 273 3/5/2023
2.0.82 279 3/5/2023
2.0.76 279 3/3/2023
2.0.75 276 3/3/2023
2.0.65 308 2/28/2023
2.0.62 334 1/30/2023
2.0.59 427 1/23/2023
2.0.56 309 1/23/2023
2.0.53 314 1/19/2023
2.0.52 331 1/17/2023
2.0.51 597 1/16/2023
2.0.50 353 1/16/2023
2.0.47 331 1/16/2023
2.0.40 329 1/16/2023
2.0.35 321 1/16/2023
2.0.29 316 1/16/2023
2.0.26 333 1/16/2023
2.0.20 363 1/16/2023
1.0.2 1,533 9/22/2019

Chore