Dime.Scheduler.Sdk 1.0.1

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Dime.Scheduler.Sdk --version 1.0.1
                    
NuGet\Install-Package Dime.Scheduler.Sdk -Version 1.0.1
                    
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="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dime.Scheduler.Sdk" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Dime.Scheduler.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dime.Scheduler.Sdk --version 1.0.1
                    
#r "nuget: Dime.Scheduler.Sdk, 1.0.1"
                    
#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.
#:package Dime.Scheduler.Sdk@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dime.Scheduler.Sdk&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Dime.Scheduler.Sdk&version=1.0.1
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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 193 11/20/2023
2.0.0-alpha.17 330 11/7/2023
2.0.0-alpha.16 300 11/7/2023
2.0.0-alpha.7 385 8/27/2023
2.0.0-alpha.6 120 8/27/2023
2.0.0-alpha.5 119 8/27/2023
2.0.0-alpha.4 108 8/26/2023
2.0.0-alpha.3 122 7/25/2023
2.0.0-alpha.2 122 7/19/2023
2.0.0-alpha.1 3,043 3/13/2023
1.0.1 323 11/22/2023
1.0.0 415 3/11/2023
1.0.0-beta.15 675 10/27/2022
1.0.0-beta.14 176 9/28/2022
1.0.0-beta.13 322 8/29/2022
1.0.0-beta.12 545 7/3/2022
1.0.0-beta.11 188 6/23/2022
1.0.0-beta.10 177 6/23/2022
1.0.0-beta.9 299 4/28/2022
1.0.0-beta.7 198 1/7/2022
1.0.0-beta.6 202 12/30/2021
1.0.0-beta.5 356 12/15/2021
1.0.0-beta.4 212 12/15/2021
1.0.0-beta.3 213 12/8/2021
1.0.0-beta.2 856 12/3/2021
1.0.0-beta.1 229 11/22/2021
0.1.0-beta.2 241 11/17/2021
0.1.0-beta.1 349 10/13/2021
0.1.0-alpha.20 265 10/13/2021
0.1.0-alpha.19 224 10/12/2021
0.1.0-alpha.17 275 5/25/2021
0.1.0-alpha.16 248 4/22/2021
0.1.0-alpha.15 249 4/12/2021
0.1.0-alpha.14 227 4/12/2021
0.1.0-alpha.13 250 3/30/2021
0.1.0-alpha.12 269 3/24/2021
0.1.0-alpha.11 278 3/23/2021
0.1.0-alpha.10 252 3/15/2021
0.1.0-alpha.9 283 3/6/2021
0.1.0-alpha.8 296 3/5/2021
0.1.0-alpha.7 270 3/2/2021
0.1.0-alpha.6 252 2/26/2021
0.1.0-alpha.5 244 2/26/2021
0.1.0-alpha.4 267 2/24/2021
0.1.0-alpha.3 243 2/23/2021
0.1.0-alpha.2 277 2/23/2021
0.1.0-alpha.1 261 2/20/2021
0.0.1-alpha.2 242 2/17/2021
0.0.1-alpha.1 260 2/17/2021