Sankhya 3.0.5

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

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

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 are looking for is not set in the SDK, you can implement the service request/response on your own (and use it on your code or submit a pull request to this repository).

There are also some Request Wrappers that allow you to make some requests in an easy way.

Known Services

Wiki page about KSRW

Sankhya Wrapper

The last mile operations are done on this wrappers. All HTTP request/responses, login/logout, serialization, download/upload operations are defined on this class.

Avoid usage of this class directly from you implementation. Only call methods of this class if you are extending the usage of the SDK or even implementing a new feature for the SDK, 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 it's 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 you code, you can just pass it as 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 one by one:

var sessions = KnowServicesRequestWrapper.GetSessions();
foreach (var session in sessions) {
    KnowServicesRequestWrapper.KillSession(session.Id);
}
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.387 42 4/30/2024
3.0.384 41 4/30/2024
3.0.380 58 4/30/2024
3.0.373 53 4/30/2024
3.0.364 58 4/30/2024
3.0.361 83 4/29/2024
3.0.348 75 4/22/2024
3.0.345 65 4/22/2024
3.0.340 101 4/22/2024
3.0.337 79 4/22/2024
3.0.328 102 4/15/2024
3.0.325 84 4/15/2024
3.0.320 79 4/15/2024
3.0.313 79 4/15/2024
3.0.304 109 4/8/2024
3.0.301 77 4/8/2024
3.0.296 78 4/8/2024
3.0.289 108 4/1/2024
3.0.286 75 4/1/2024
3.0.281 125 3/25/2024
3.0.278 79 3/25/2024
3.0.273 108 3/18/2024
3.0.270 99 3/18/2024
3.0.265 96 3/11/2024
3.0.262 82 3/11/2024
3.0.257 133 3/4/2024
3.0.254 99 2/26/2024
3.0.251 94 2/26/2024
3.0.246 84 2/26/2024
3.0.239 91 2/19/2024
3.0.236 72 2/19/2024
3.0.231 72 2/19/2024
3.0.224 70 2/19/2024
3.0.215 88 2/14/2024
3.0.210 98 2/12/2024
3.0.207 104 2/12/2024
3.0.204 89 2/12/2024
3.0.197 104 2/7/2024
3.0.188 81 2/6/2024
3.0.184 86 2/5/2024
3.0.178 87 1/30/2024
3.0.175 78 1/30/2024
3.0.170 74 1/29/2024
3.0.163 76 1/29/2024
3.0.156 92 1/29/2024
3.0.142 81 1/24/2024
3.0.139 78 1/24/2024
3.0.136 76 1/23/2024
3.0.129 74 1/23/2024
3.0.124 74 1/23/2024
3.0.117 78 1/22/2024
3.0.114 75 1/22/2024
3.0.107 104 1/22/2024
3.0.102 77 1/22/2024
3.0.97 78 1/22/2024
3.0.86 91 1/16/2024
3.0.83 86 1/16/2024
3.0.71 101 1/15/2024
3.0.62 113 1/8/2024
3.0.59 148 1/1/2024
3.0.56 124 12/25/2023
3.0.53 109 12/25/2023
3.0.48 101 12/25/2023
3.0.41 98 12/25/2023
3.0.32 187 12/18/2023
3.0.5 125 12/17/2023
2.0.773 118 12/14/2023
2.0.767 122 12/11/2023
2.0.764 94 12/11/2023
2.0.759 111 12/11/2023
2.0.752 134 12/11/2023
2.0.743 101 12/11/2023
2.0.732 115 12/11/2023
2.0.729 114 12/6/2023
2.0.724 146 12/4/2023
2.0.721 110 12/4/2023
2.0.716 115 12/4/2023
2.0.709 105 12/4/2023
2.0.698 104 11/27/2023
2.0.695 85 11/27/2023
2.0.690 205 11/21/2023
2.0.686 94 11/21/2023
2.0.681 96 11/20/2023
2.0.674 108 11/20/2023
2.0.665 190 11/14/2023
2.0.658 108 11/14/2023
2.0.653 78 11/14/2023
2.0.650 101 11/14/2023
2.0.643 101 11/14/2023
2.0.636 84 11/14/2023
2.0.623 82 11/13/2023
2.0.614 129 11/9/2023
2.0.606 105 11/6/2023
2.0.601 161 10/30/2023
2.0.598 110 10/30/2023
2.0.595 109 10/30/2023
2.0.590 130 10/26/2023
2.0.586 121 10/23/2023
2.0.583 107 10/23/2023
2.0.578 142 10/17/2023
2.0.575 119 10/17/2023
2.0.570 108 10/17/2023
2.0.563 113 10/16/2023
2.0.554 94 10/16/2023
2.0.543 122 10/16/2023
2.0.530 129 10/10/2023
2.0.526 97 10/10/2023
2.0.519 138 10/8/2023
2.0.512 94 10/8/2023
2.0.495 120 10/8/2023
2.0.486 116 10/8/2023
2.0.450 119 10/2/2023
2.0.447 117 10/2/2023
2.0.442 147 9/25/2023
2.0.439 121 9/25/2023
2.0.434 119 9/23/2023
2.0.431 98 9/19/2023
2.0.428 103 9/19/2023
2.0.419 153 9/16/2023
2.0.416 160 9/13/2023
2.0.413 117 9/12/2023
2.0.408 117 9/12/2023
2.0.401 116 9/12/2023
2.0.392 145 9/6/2023
2.0.387 244 9/4/2023
2.0.384 231 8/28/2023
2.0.381 126 8/28/2023
2.0.376 187 8/24/2023
2.0.373 354 8/14/2023
2.0.344 222 8/9/2023
2.0.337 153 8/9/2023
2.0.332 148 8/9/2023
2.0.325 326 7/29/2023
2.0.322 155 7/29/2023
2.0.315 119 7/29/2023
2.0.311 218 7/24/2023
2.0.308 148 7/24/2023
2.0.302 213 7/17/2023
2.0.299 139 7/17/2023
2.0.284 148 7/12/2023
2.0.272 249 7/10/2023
2.0.265 168 7/10/2023
2.0.256 262 7/3/2023
2.0.253 151 7/3/2023
2.0.248 161 7/3/2023
2.0.241 304 6/19/2023
2.0.238 148 6/19/2023
2.0.233 305 6/15/2023
2.0.230 195 6/15/2023
2.0.225 192 6/15/2023
2.0.218 235 6/6/2023
2.0.215 218 6/5/2023
2.0.210 148 6/5/2023
2.0.203 151 6/5/2023
2.0.191 467 5/22/2023
2.0.188 163 5/22/2023
2.0.183 271 5/15/2023
2.0.180 208 5/15/2023
2.0.175 277 5/8/2023
2.0.168 159 5/8/2023
2.0.163 393 5/4/2023
2.0.160 174 5/3/2023
2.0.155 408 4/10/2023
2.0.152 205 4/10/2023
2.0.147 198 4/9/2023
2.0.141 206 4/4/2023
2.0.136 356 4/3/2023
2.0.133 226 4/3/2023
2.0.128 319 3/27/2023
2.0.125 219 3/27/2023
2.0.122 259 3/27/2023
2.0.119 207 3/27/2023
2.0.111 244 3/26/2023
2.0.108 264 3/22/2023
2.0.103 250 3/21/2023
2.0.98 232 3/21/2023
2.0.91 346 3/5/2023
2.0.86 239 3/5/2023
2.0.82 246 3/5/2023
2.0.76 263 3/3/2023
2.0.75 238 3/3/2023
2.0.65 264 2/28/2023
2.0.62 313 1/30/2023
2.0.59 405 1/23/2023
2.0.56 272 1/23/2023
2.0.53 281 1/19/2023
2.0.52 294 1/17/2023
2.0.51 573 1/16/2023
2.0.50 316 1/16/2023
2.0.47 297 1/16/2023
2.0.40 305 1/16/2023
2.0.35 299 1/16/2023
2.0.29 295 1/16/2023
2.0.26 310 1/16/2023
2.0.20 328 1/16/2023
1.0.2 1,499 9/22/2019