Sankhya 3.0.745

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

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

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/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/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/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.1.108 149 4 days ago
3.1.103 70 4 days ago
3.1.98 135 11 days ago
3.1.95 74 11 days ago
3.1.92 63 11 days ago
3.1.83 261 18 days ago
3.1.80 76 18 days ago
3.1.75 71 18 days ago
3.1.66 76 18 days ago
3.1.61 267 25 days ago
3.1.58 78 25 days ago
3.1.53 86 25 days ago
3.1.42 80 a month ago
3.1.37 211 a month ago
3.1.32 74 a month ago
3.1.16 78 a month ago
3.0.969 91 a month ago
3.0.950 80 a month ago
3.0.947 90 a month ago
3.0.938 247 a month ago
3.0.926 212 2 months ago
3.0.923 76 2 months ago
3.0.916 174 2 months ago
3.0.913 74 2 months ago
3.0.910 75 2 months ago
3.0.889 214 2 months ago
3.0.886 87 2 months ago
3.0.883 74 2 months ago
3.0.878 80 2 months ago
3.0.869 106 2 months ago
3.0.865 111 2 months ago
3.0.862 121 2 months ago
3.0.856 109 2 months ago
3.0.845 89 2 months ago
3.0.842 206 2 months ago
3.0.837 98 2 months ago
3.0.822 78 2 months ago
3.0.819 98 3 months ago
3.0.816 92 3 months ago
3.0.811 94 3 months ago
3.0.808 89 3 months ago
3.0.805 88 3 months ago
3.0.794 313 3 months ago
3.0.791 92 3 months ago
3.0.786 84 3 months ago
3.0.782 124 3 months ago
3.0.778 231 3 months ago
3.0.775 111 3 months ago
3.0.768 181 3 months ago
3.0.765 100 3 months ago
3.0.760 101 3 months ago
3.0.757 96 3 months ago
3.0.748 221 4 months ago
3.0.745 110 4 months ago
3.0.740 116 4 months ago
3.0.734 107 4 months ago
3.0.731 97 4 months ago
3.0.722 106 4 months ago
3.0.719 105 4 months ago
3.0.707 88 4 months ago
3.0.702 113 4 months ago
3.0.694 108 4 months ago
3.0.686 104 4 months ago
3.0.680 242 4 months ago
3.0.672 96 4 months ago
3.0.656 133 4 months ago
3.0.648 127 4 months ago
3.0.640 725 4 months ago
3.0.637 113 4 months ago
3.0.634 112 4 months ago
3.0.629 114 4 months ago
3.0.620 129 4 months ago
3.0.617 114 4 months ago
3.0.612 114 4 months ago
3.0.609 100 4 months ago
3.0.606 67 4 months ago
3.0.601 122 5 months ago
3.0.598 91 5 months ago
3.0.589 104 5 months ago
3.0.586 96 5 months ago
3.0.567 146 5 months ago
3.0.564 82 5 months ago
3.0.563 84 5 months ago
3.0.559 106 5 months ago
3.0.549 92 5 months ago
3.0.545 90 5 months ago
3.0.542 95 5 months ago
3.0.539 73 5 months ago
3.0.535 111 5 months ago
3.0.530 102 5 months ago
3.0.523 99 5 months ago
3.0.514 90 5 months ago
3.0.511 87 5 months ago
3.0.506 88 5 months ago
3.0.503 72 5 months ago
3.0.500 74 5 months ago
3.0.477 102 5 months ago
3.0.470 124 6 months ago
3.0.467 120 6 months ago
3.0.464 110 6 months ago
3.0.459 136 6 months ago
3.0.456 131 6 months ago
3.0.453 96 6 months ago
3.0.448 130 6 months ago
3.0.445 102 7 months ago
3.0.442 104 7 months ago
3.0.437 89 7 months ago
3.0.434 135 7 months ago
3.0.429 110 7 months ago
3.0.422 109 7 months ago
3.0.413 110 7 months ago
3.0.402 131 7 months ago
3.0.399 118 7 months ago
3.0.393 93 7 months ago
3.0.390 148 7 months ago
3.0.387 117 8 months ago
3.0.384 112 8 months ago
3.0.380 124 8 months ago
3.0.373 131 8 months ago
3.0.364 124 8 months ago
3.0.361 130 8 months ago
3.0.348 115 8 months ago
3.0.345 102 8 months ago
3.0.340 140 8 months ago
3.0.337 118 8 months ago
3.0.328 135 8 months ago
3.0.325 119 8 months ago
3.0.320 100 8 months ago
3.0.313 112 8 months ago
3.0.304 144 8 months ago
3.0.301 113 8 months ago
3.0.296 114 8 months ago
3.0.289 141 9 months ago
3.0.286 113 9 months ago
3.0.281 156 9 months ago
3.0.278 115 9 months ago
3.0.273 139 9 months ago
3.0.270 136 9 months ago
3.0.265 129 9 months ago
3.0.262 125 9 months ago
3.0.257 154 10 months ago
3.0.254 119 10 months ago
3.0.251 160 10 months ago
3.0.246 116 10 months ago
3.0.239 111 2/19/2024
3.0.236 109 2/19/2024
3.0.231 110 2/19/2024
3.0.224 118 2/19/2024
3.0.215 123 2/14/2024
3.0.210 132 2/12/2024
3.0.207 142 2/12/2024
3.0.204 124 2/12/2024
3.0.197 142 2/7/2024
3.0.188 123 2/6/2024
3.0.184 125 2/5/2024
3.0.178 121 1/30/2024
3.0.175 116 1/30/2024
3.0.170 106 1/29/2024
3.0.163 111 1/29/2024
3.0.156 127 1/29/2024
3.0.142 117 1/24/2024
3.0.139 109 1/24/2024
3.0.136 112 1/23/2024
3.0.129 111 1/23/2024
3.0.124 109 1/23/2024
3.0.117 122 1/22/2024
3.0.114 117 1/22/2024
3.0.107 142 1/22/2024
3.0.102 111 1/22/2024
3.0.97 114 1/22/2024
3.0.86 129 1/16/2024
3.0.83 123 1/16/2024
3.0.71 131 1/15/2024
3.0.62 133 1/8/2024
3.0.59 181 1/1/2024
3.0.56 143 12/25/2023
3.0.53 142 12/25/2023
3.0.48 135 12/25/2023
3.0.41 115 12/25/2023
3.0.32 1,082 12/18/2023
3.0.5 149 12/17/2023
2.0.773 133 12/14/2023
2.0.767 153 12/11/2023
2.0.764 128 12/11/2023
2.0.759 147 12/11/2023
2.0.752 164 12/11/2023
2.0.743 117 12/11/2023
2.0.732 146 12/11/2023
2.0.729 144 12/6/2023
2.0.724 175 12/4/2023
2.0.721 124 12/4/2023
2.0.716 129 12/4/2023
2.0.709 137 12/4/2023
2.0.698 119 11/27/2023
2.0.695 112 11/27/2023
2.0.690 1,076 11/21/2023
2.0.686 132 11/21/2023
2.0.681 127 11/20/2023
2.0.674 137 11/20/2023
2.0.665 227 11/14/2023
2.0.658 137 11/14/2023
2.0.653 126 11/14/2023
2.0.650 136 11/14/2023
2.0.643 133 11/14/2023
2.0.636 118 11/14/2023
2.0.623 103 11/13/2023
2.0.614 163 11/9/2023
2.0.606 139 11/6/2023
2.0.601 193 10/30/2023
2.0.598 126 10/30/2023
2.0.595 139 10/30/2023
2.0.590 146 10/26/2023
2.0.586 156 10/23/2023
2.0.583 137 10/23/2023
2.0.578 174 10/17/2023
2.0.575 157 10/17/2023
2.0.570 148 10/17/2023
2.0.563 146 10/16/2023
2.0.554 110 10/16/2023
2.0.543 158 10/16/2023
2.0.530 147 10/10/2023
2.0.526 128 10/10/2023
2.0.519 171 10/8/2023
2.0.512 110 10/8/2023
2.0.495 148 10/8/2023
2.0.486 155 10/8/2023
2.0.450 151 10/2/2023
2.0.447 156 10/2/2023
2.0.442 180 9/25/2023
2.0.439 152 9/25/2023
2.0.434 137 9/23/2023
2.0.431 116 9/19/2023
2.0.428 119 9/19/2023
2.0.419 185 9/16/2023
2.0.416 177 9/13/2023
2.0.413 145 9/12/2023
2.0.408 160 9/12/2023
2.0.401 132 9/12/2023
2.0.392 161 9/6/2023
2.0.387 299 9/4/2023
2.0.384 247 8/28/2023
2.0.381 158 8/28/2023
2.0.376 219 8/24/2023
2.0.373 389 8/14/2023
2.0.344 250 8/9/2023
2.0.337 183 8/9/2023
2.0.332 183 8/9/2023
2.0.325 365 7/29/2023
2.0.322 187 7/29/2023
2.0.315 134 7/29/2023
2.0.311 251 7/24/2023
2.0.308 180 7/24/2023
2.0.302 228 7/17/2023
2.0.299 154 7/17/2023
2.0.284 188 7/12/2023
2.0.272 277 7/10/2023
2.0.265 200 7/10/2023
2.0.256 277 7/3/2023
2.0.253 182 7/3/2023
2.0.248 192 7/3/2023
2.0.241 339 6/19/2023
2.0.238 178 6/19/2023
2.0.233 343 6/15/2023
2.0.230 223 6/15/2023
2.0.225 224 6/15/2023
2.0.218 274 6/6/2023
2.0.215 256 6/5/2023
2.0.210 164 6/5/2023
2.0.203 189 6/5/2023
2.0.191 482 5/22/2023
2.0.188 194 5/22/2023
2.0.183 286 5/15/2023
2.0.180 240 5/15/2023
2.0.175 305 5/8/2023
2.0.168 174 5/8/2023
2.0.163 425 5/4/2023
2.0.160 206 5/3/2023
2.0.155 437 4/10/2023
2.0.152 220 4/10/2023
2.0.147 232 4/9/2023
2.0.141 223 4/4/2023
2.0.136 379 4/3/2023
2.0.133 260 4/3/2023
2.0.128 336 3/27/2023
2.0.125 234 3/27/2023
2.0.122 293 3/27/2023
2.0.119 235 3/27/2023
2.0.111 271 3/26/2023
2.0.108 299 3/22/2023
2.0.103 277 3/21/2023
2.0.98 252 3/21/2023
2.0.91 359 3/5/2023
2.0.86 269 3/5/2023
2.0.82 275 3/5/2023
2.0.76 275 3/3/2023
2.0.75 270 3/3/2023
2.0.65 303 2/28/2023
2.0.62 329 1/30/2023
2.0.59 422 1/23/2023
2.0.56 304 1/23/2023
2.0.53 309 1/19/2023
2.0.52 326 1/17/2023
2.0.51 592 1/16/2023
2.0.50 348 1/16/2023
2.0.47 326 1/16/2023
2.0.40 324 1/16/2023
2.0.35 316 1/16/2023
2.0.29 311 1/16/2023
2.0.26 328 1/16/2023
2.0.20 358 1/16/2023
1.0.2 1,525 9/22/2019