Dime.Scheduler.Sdk 0.1.0-alpha.20

This is a prerelease version of Dime.Scheduler.Sdk.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Dime.Scheduler.Sdk --version 0.1.0-alpha.20                
NuGet\Install-Package Dime.Scheduler.Sdk -Version 0.1.0-alpha.20                
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="Dime.Scheduler.Sdk" Version="0.1.0-alpha.20" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dime.Scheduler.Sdk --version 0.1.0-alpha.20                
#r "nuget: Dime.Scheduler.Sdk, 0.1.0-alpha.20"                
#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 Dime.Scheduler.Sdk as a Cake Addin
#addin nuget:?package=Dime.Scheduler.Sdk&version=0.1.0-alpha.20&prerelease

// Install Dime.Scheduler.Sdk as a Cake Tool
#tool nuget:?package=Dime.Scheduler.Sdk&version=0.1.0-alpha.20&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 16.7 or higher. The application is built with C# 9 and targets .NET Standard 2.0, .NET Standard 2.1 and .NET 5.

The SDK is currently only supported for the latest version of Dime.Scheduler.

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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 175 11/20/2023
2.0.0-alpha.17 308 11/7/2023
2.0.0-alpha.16 280 11/7/2023
2.0.0-alpha.7 350 8/27/2023
2.0.0-alpha.6 83 8/27/2023
2.0.0-alpha.5 78 8/27/2023
2.0.0-alpha.4 73 8/26/2023
2.0.0-alpha.3 88 7/25/2023
2.0.0-alpha.2 82 7/19/2023
2.0.0-alpha.1 2,996 3/13/2023
1.0.1 286 11/22/2023
1.0.0 365 3/11/2023
1.0.0-beta.15 623 10/27/2022
1.0.0-beta.14 124 9/28/2022
1.0.0-beta.13 269 8/29/2022
1.0.0-beta.12 459 7/3/2022
1.0.0-beta.11 131 6/23/2022
1.0.0-beta.10 120 6/23/2022
1.0.0-beta.9 233 4/28/2022
1.0.0-beta.7 129 1/7/2022
1.0.0-beta.6 132 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 144 12/8/2021
1.0.0-beta.2 787 12/3/2021
1.0.0-beta.1 160 11/22/2021
0.1.0-beta.2 172 11/17/2021
0.1.0-beta.1 281 10/13/2021
0.1.0-alpha.20 196 10/13/2021
0.1.0-alpha.19 157 10/12/2021
0.1.0-alpha.17 204 5/25/2021
0.1.0-alpha.16 175 4/22/2021
0.1.0-alpha.15 175 4/12/2021
0.1.0-alpha.14 158 4/12/2021
0.1.0-alpha.13 177 3/30/2021
0.1.0-alpha.12 198 3/24/2021
0.1.0-alpha.11 200 3/23/2021
0.1.0-alpha.10 179 3/15/2021
0.1.0-alpha.9 199 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 178 2/26/2021
0.1.0-alpha.5 161 2/26/2021
0.1.0-alpha.4 184 2/24/2021
0.1.0-alpha.3 152 2/23/2021
0.1.0-alpha.2 200 2/23/2021
0.1.0-alpha.1 179 2/20/2021
0.0.1-alpha.2 167 2/17/2021
0.0.1-alpha.1 183 2/17/2021