Dime.Scheduler.Sdk
1.0.0-beta.6
See the version list below for details.
dotnet add package Dime.Scheduler.Sdk --version 1.0.0-beta.6
NuGet\Install-Package Dime.Scheduler.Sdk -Version 1.0.0-beta.6
<PackageReference Include="Dime.Scheduler.Sdk" Version="1.0.0-beta.6" />
paket add Dime.Scheduler.Sdk --version 1.0.0-beta.6
#r "nuget: Dime.Scheduler.Sdk, 1.0.0-beta.6"
// Install Dime.Scheduler.Sdk as a Cake Addin #addin nuget:?package=Dime.Scheduler.Sdk&version=1.0.0-beta.6&prerelease // Install Dime.Scheduler.Sdk as a Cake Tool #tool nuget:?package=Dime.Scheduler.Sdk&version=1.0.0-beta.6&prerelease
Dime.Scheduler SDK for .NET
This repository contains the .NET SDK for Dime.Scheduler's RESTful API services. The SDK is a gateway to connect any system to Dime.Scheduler through its extensive import pipeline and large collection of web APIs.
Check out the ๐ docs ยป for more info.
Installation
Use the package manager NuGet to install the base library of the SDK:
dotnet add package Dime.Scheduler.Sdk
Prerequisites
To clone and run this application, you'll need Visual Studio 2022 or higher. The application is built with C# 10 and targets:
- .NET Standard 2.0
- .NET Standard 2.1
- .NET 5
- .NET 6
The SDK is currently only supported for the latest version of Dime.Scheduler. Once released, versioning of the SDK will take Dime.Schedulers versions into account.
Usage
The example below fetches the resources available in Dime.Scheduler:
string uri = "http://mydimescheduler.com";
IAuthenticator authenticator = new FormsAuthenticator(uri,"admin","admin");
DimeSchedulerClient client = new(uri, authenticator);
IResourceEndpoint resourceEndpoint = await client.Resources.Request();
IEnumerable<Resource> resources = await resourceEndpoint.GetAsync(new ResourceRequest());
foreach (Resource resource in resources)
Console.WriteLine(resource.Email);
The DimeSchedulerClient
class is the entry point and it is where all endpoints are exposed:
DimeSchedulerClient client = new(uri, authenticator);
Two arguments are required: the URI to Dime.Scheduler and credentials to connect to it. The IAuthenticator
(with FormsAuthenticator
as the default implementation) interface is called when an endpoint is requested:
IResourceEndpoint resourceEndpoint = await client.Resources.Request();
When the credentials are invalid, an exception is thrown. Otherwise, the user is authenticated and can access the endpoint:
IEnumerable<Resource> resources = await resourceEndpoint.GetAsync(new ResourceRequest());
Import
The import API is the entry point for external systems to feed data into Dime.Scheduler. The import endpoints expose a set of import pipelines to map and save data in the Dime.Scheduler database. Any class that implements the IImportRequestable
interface is eligible to be processed by the import service in Dime.Scheduler.
This example adds or updates a category:
using Dime.Scheduler.Sdk.Import;
string uri = "http://mydimescheduler.com";
IAuthenticator authenticator = new FormsAuthenticator(uri, "admin", "admin");
DimeSchedulerClient client = new(uri, authenticator);
Category category = new("Category #1", "#6e62b5");
IImportEndpoint importEndpoint = await client.Import.Request();
await importEndpoint.RunAsync(category, TransactionType.Append);
This example adds or updates a filter group:
using Dime.Scheduler.Sdk.Import;
string uri = "http://mydimescheduler.com";
IAuthenticator authenticator = new FormsAuthenticator(uri, "admin", "admin");
DimeSchedulerClient client = new(uri, authenticator);
FilterGroup filterGroup = new FilterGroup { Name = "Group 1" };
IImportEndpoint importEndpoint = await client.Import.Request();
await importEndpoint.RunAsync(filterGroup, TransactionType.Append);
Read more
Check out the ๐ docs ยป for more info.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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 was computed. 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. |
-
.NETStandard 2.0
- RestSharp (>= 106.15.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.1
- RestSharp (>= 106.15.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net5.0
- RestSharp (>= 106.15.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net6.0
- RestSharp (>= 106.15.0)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-alpha.18 | 174 | 11/20/2023 |
2.0.0-alpha.17 | 307 | 11/7/2023 |
2.0.0-alpha.16 | 279 | 11/7/2023 |
2.0.0-alpha.7 | 349 | 8/27/2023 |
2.0.0-alpha.6 | 82 | 8/27/2023 |
2.0.0-alpha.5 | 77 | 8/27/2023 |
2.0.0-alpha.4 | 72 | 8/26/2023 |
2.0.0-alpha.3 | 87 | 7/25/2023 |
2.0.0-alpha.2 | 81 | 7/19/2023 |
2.0.0-alpha.1 | 2,995 | 3/13/2023 |
1.0.1 | 285 | 11/22/2023 |
1.0.0 | 364 | 3/11/2023 |
1.0.0-beta.15 | 622 | 10/27/2022 |
1.0.0-beta.14 | 123 | 9/28/2022 |
1.0.0-beta.13 | 268 | 8/29/2022 |
1.0.0-beta.12 | 452 | 7/3/2022 |
1.0.0-beta.11 | 131 | 6/23/2022 |
1.0.0-beta.10 | 119 | 6/23/2022 |
1.0.0-beta.9 | 232 | 4/28/2022 |
1.0.0-beta.7 | 128 | 1/7/2022 |
1.0.0-beta.6 | 131 | 12/30/2021 |
1.0.0-beta.5 | 284 | 12/15/2021 |
1.0.0-beta.4 | 146 | 12/15/2021 |
1.0.0-beta.3 | 143 | 12/8/2021 |
1.0.0-beta.2 | 786 | 12/3/2021 |
1.0.0-beta.1 | 159 | 11/22/2021 |
0.1.0-beta.2 | 169 | 11/17/2021 |
0.1.0-beta.1 | 280 | 10/13/2021 |
0.1.0-alpha.20 | 195 | 10/13/2021 |
0.1.0-alpha.19 | 156 | 10/12/2021 |
0.1.0-alpha.17 | 203 | 5/25/2021 |
0.1.0-alpha.16 | 174 | 4/22/2021 |
0.1.0-alpha.15 | 174 | 4/12/2021 |
0.1.0-alpha.14 | 155 | 4/12/2021 |
0.1.0-alpha.13 | 176 | 3/30/2021 |
0.1.0-alpha.12 | 197 | 3/24/2021 |
0.1.0-alpha.11 | 199 | 3/23/2021 |
0.1.0-alpha.10 | 179 | 3/15/2021 |
0.1.0-alpha.9 | 198 | 3/6/2021 |
0.1.0-alpha.8 | 219 | 3/5/2021 |
0.1.0-alpha.7 | 192 | 3/2/2021 |
0.1.0-alpha.6 | 177 | 2/26/2021 |
0.1.0-alpha.5 | 160 | 2/26/2021 |
0.1.0-alpha.4 | 183 | 2/24/2021 |
0.1.0-alpha.3 | 150 | 2/23/2021 |
0.1.0-alpha.2 | 199 | 2/23/2021 |
0.1.0-alpha.1 | 178 | 2/20/2021 |
0.0.1-alpha.2 | 166 | 2/17/2021 |
0.0.1-alpha.1 | 182 | 2/17/2021 |