Sankhya 3.0.938

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

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

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 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.1.42 68 11/18/2024
3.1.37 139 11/18/2024
3.1.32 62 11/18/2024
3.1.16 68 11/17/2024
3.0.969 74 11/12/2024
3.0.950 65 11/12/2024
3.0.947 69 11/12/2024
3.0.938 236 11/11/2024
3.0.926 181 11/4/2024
3.0.923 68 11/4/2024
3.0.916 167 10/28/2024
3.0.913 67 10/28/2024
3.0.910 70 10/28/2024
3.0.889 208 10/21/2024
3.0.886 83 10/21/2024
3.0.883 68 10/21/2024
3.0.878 75 10/21/2024
3.0.869 101 10/19/2024
3.0.865 106 10/18/2024
3.0.862 116 10/18/2024
3.0.856 104 10/18/2024
3.0.845 83 10/18/2024
3.0.842 200 10/14/2024
3.0.837 94 10/12/2024
3.0.822 74 10/7/2024
3.0.819 92 10/2/2024
3.0.816 86 10/2/2024
3.0.811 88 10/2/2024
3.0.808 85 10/2/2024
3.0.805 84 10/2/2024
3.0.794 305 9/23/2024
3.0.791 88 9/23/2024
3.0.786 78 9/23/2024
3.0.782 118 9/17/2024
3.0.778 225 9/16/2024
3.0.775 107 9/16/2024
3.0.768 177 9/9/2024
3.0.765 96 9/9/2024
3.0.760 95 9/9/2024
3.0.757 92 9/9/2024
3.0.748 215 9/2/2024
3.0.745 106 9/2/2024
3.0.740 112 8/28/2024
3.0.734 103 8/28/2024
3.0.731 93 8/28/2024
3.0.722 102 8/27/2024
3.0.719 101 8/27/2024
3.0.707 84 8/27/2024
3.0.702 107 8/27/2024
3.0.694 104 8/26/2024
3.0.686 100 8/26/2024
3.0.680 238 8/26/2024
3.0.672 92 8/26/2024
3.0.656 129 8/24/2024
3.0.648 121 8/24/2024
3.0.640 719 8/19/2024
3.0.637 107 8/19/2024
3.0.634 108 8/19/2024
3.0.629 110 8/19/2024
3.0.620 121 8/12/2024
3.0.617 108 8/12/2024
3.0.612 110 8/12/2024
3.0.609 94 8/5/2024
3.0.606 63 8/5/2024
3.0.601 118 7/29/2024
3.0.598 87 7/29/2024
3.0.589 98 7/22/2024
3.0.586 92 7/22/2024
3.0.567 142 7/22/2024
3.0.564 78 7/20/2024
3.0.563 80 7/20/2024
3.0.559 102 7/20/2024
3.0.549 88 7/17/2024
3.0.545 86 7/17/2024
3.0.542 87 7/17/2024
3.0.539 69 7/16/2024
3.0.535 107 7/15/2024
3.0.530 98 7/15/2024
3.0.523 95 7/15/2024
3.0.514 86 7/12/2024
3.0.511 81 7/12/2024
3.0.506 84 7/12/2024
3.0.503 68 7/12/2024
3.0.500 66 7/12/2024
3.0.477 98 7/8/2024
3.0.470 117 7/3/2024
3.0.467 114 7/1/2024
3.0.464 104 7/1/2024
3.0.459 129 6/24/2024
3.0.456 124 6/17/2024
3.0.453 92 6/17/2024
3.0.448 124 6/10/2024
3.0.445 98 6/3/2024
3.0.442 100 6/3/2024
3.0.437 85 5/27/2024
3.0.434 129 5/27/2024
3.0.429 104 5/27/2024
3.0.422 105 5/27/2024
3.0.413 106 5/27/2024
3.0.402 125 5/20/2024
3.0.399 112 5/19/2024
3.0.393 87 5/13/2024
3.0.390 144 5/6/2024
3.0.387 115 4/30/2024
3.0.384 110 4/30/2024
3.0.380 122 4/30/2024
3.0.373 129 4/30/2024
3.0.364 122 4/30/2024
3.0.361 120 4/29/2024
3.0.348 113 4/22/2024
3.0.345 98 4/22/2024
3.0.340 138 4/22/2024
3.0.337 114 4/22/2024
3.0.328 133 4/15/2024
3.0.325 115 4/15/2024
3.0.320 96 4/15/2024
3.0.313 110 4/15/2024
3.0.304 142 4/8/2024
3.0.301 111 4/8/2024
3.0.296 110 4/8/2024
3.0.289 139 4/1/2024
3.0.286 111 4/1/2024
3.0.281 154 3/25/2024
3.0.278 113 3/25/2024
3.0.273 137 3/18/2024
3.0.270 132 3/18/2024
3.0.265 119 3/11/2024
3.0.262 123 3/11/2024
3.0.257 152 3/4/2024
3.0.254 117 2/26/2024
3.0.251 158 2/26/2024
3.0.246 114 2/26/2024
3.0.239 109 2/19/2024
3.0.236 107 2/19/2024
3.0.231 108 2/19/2024
3.0.224 114 2/19/2024
3.0.215 121 2/14/2024
3.0.210 130 2/12/2024
3.0.207 140 2/12/2024
3.0.204 122 2/12/2024
3.0.197 140 2/7/2024
3.0.188 121 2/6/2024
3.0.184 123 2/5/2024
3.0.178 119 1/30/2024
3.0.175 114 1/30/2024
3.0.170 104 1/29/2024
3.0.163 109 1/29/2024
3.0.156 125 1/29/2024
3.0.142 115 1/24/2024
3.0.139 107 1/24/2024
3.0.136 110 1/23/2024
3.0.129 107 1/23/2024
3.0.124 107 1/23/2024
3.0.117 118 1/22/2024
3.0.114 113 1/22/2024
3.0.107 140 1/22/2024
3.0.102 109 1/22/2024
3.0.97 110 1/22/2024
3.0.86 127 1/16/2024
3.0.83 121 1/16/2024
3.0.71 129 1/15/2024
3.0.62 131 1/8/2024
3.0.59 179 1/1/2024
3.0.56 141 12/25/2023
3.0.53 140 12/25/2023
3.0.48 133 12/25/2023
3.0.41 113 12/25/2023
3.0.32 1,043 12/18/2023
3.0.5 147 12/17/2023
2.0.773 131 12/14/2023
2.0.767 151 12/11/2023
2.0.764 124 12/11/2023
2.0.759 145 12/11/2023
2.0.752 162 12/11/2023
2.0.743 113 12/11/2023
2.0.732 144 12/11/2023
2.0.729 142 12/6/2023
2.0.724 173 12/4/2023
2.0.721 122 12/4/2023
2.0.716 127 12/4/2023
2.0.709 135 12/4/2023
2.0.698 117 11/27/2023
2.0.695 110 11/27/2023
2.0.690 1,029 11/21/2023
2.0.686 130 11/21/2023
2.0.681 123 11/20/2023
2.0.674 135 11/20/2023
2.0.665 225 11/14/2023
2.0.658 135 11/14/2023
2.0.653 118 11/14/2023
2.0.650 134 11/14/2023
2.0.643 131 11/14/2023
2.0.636 116 11/14/2023
2.0.623 101 11/13/2023
2.0.614 160 11/9/2023
2.0.606 135 11/6/2023
2.0.601 191 10/30/2023
2.0.598 124 10/30/2023
2.0.595 137 10/30/2023
2.0.590 144 10/26/2023
2.0.586 152 10/23/2023
2.0.583 135 10/23/2023
2.0.578 170 10/17/2023
2.0.575 155 10/17/2023
2.0.570 139 10/17/2023
2.0.563 144 10/16/2023
2.0.554 108 10/16/2023
2.0.543 156 10/16/2023
2.0.530 143 10/10/2023
2.0.526 126 10/10/2023
2.0.519 169 10/8/2023
2.0.512 108 10/8/2023
2.0.495 146 10/8/2023
2.0.486 153 10/8/2023
2.0.450 149 10/2/2023
2.0.447 154 10/2/2023
2.0.442 178 9/25/2023
2.0.439 150 9/25/2023
2.0.434 133 9/23/2023
2.0.431 112 9/19/2023
2.0.428 117 9/19/2023
2.0.419 183 9/16/2023
2.0.416 175 9/13/2023
2.0.413 143 9/12/2023
2.0.408 154 9/12/2023
2.0.401 130 9/12/2023
2.0.392 159 9/6/2023
2.0.387 287 9/4/2023
2.0.384 245 8/28/2023
2.0.381 156 8/28/2023
2.0.376 217 8/24/2023
2.0.373 387 8/14/2023
2.0.344 248 8/9/2023
2.0.337 181 8/9/2023
2.0.332 181 8/9/2023
2.0.325 363 7/29/2023
2.0.322 185 7/29/2023
2.0.315 132 7/29/2023
2.0.311 249 7/24/2023
2.0.308 178 7/24/2023
2.0.302 226 7/17/2023
2.0.299 152 7/17/2023
2.0.284 186 7/12/2023
2.0.272 275 7/10/2023
2.0.265 198 7/10/2023
2.0.256 275 7/3/2023
2.0.253 180 7/3/2023
2.0.248 190 7/3/2023
2.0.241 337 6/19/2023
2.0.238 176 6/19/2023
2.0.233 341 6/15/2023
2.0.230 221 6/15/2023
2.0.225 222 6/15/2023
2.0.218 270 6/6/2023
2.0.215 254 6/5/2023
2.0.210 162 6/5/2023
2.0.203 187 6/5/2023
2.0.191 480 5/22/2023
2.0.188 192 5/22/2023
2.0.183 284 5/15/2023
2.0.180 238 5/15/2023
2.0.175 303 5/8/2023
2.0.168 172 5/8/2023
2.0.163 423 5/4/2023
2.0.160 204 5/3/2023
2.0.155 435 4/10/2023
2.0.152 218 4/10/2023
2.0.147 230 4/9/2023
2.0.141 221 4/4/2023
2.0.136 377 4/3/2023
2.0.133 258 4/3/2023
2.0.128 334 3/27/2023
2.0.125 232 3/27/2023
2.0.122 291 3/27/2023
2.0.119 233 3/27/2023
2.0.111 269 3/26/2023
2.0.108 297 3/22/2023
2.0.103 275 3/21/2023
2.0.98 250 3/21/2023
2.0.91 357 3/5/2023
2.0.86 267 3/5/2023
2.0.82 273 3/5/2023
2.0.76 273 3/3/2023
2.0.75 268 3/3/2023
2.0.65 301 2/28/2023
2.0.62 327 1/30/2023
2.0.59 420 1/23/2023
2.0.56 302 1/23/2023
2.0.53 307 1/19/2023
2.0.52 324 1/17/2023
2.0.51 590 1/16/2023
2.0.50 346 1/16/2023
2.0.47 324 1/16/2023
2.0.40 322 1/16/2023
2.0.35 314 1/16/2023
2.0.29 309 1/16/2023
2.0.26 326 1/16/2023
2.0.20 356 1/16/2023
1.0.2 1,523 9/22/2019