This is the start of a tutorial series for developers showing how to create Payroll Engine Clients.
Tutorial topic: Connect to the Payroll Engine Payroll API.
- Payroll Engine Backend running
- Visual Studio with .NET 8
- Payroll Engine Client Services
- Minimal .NET console application
- Payroll Engine NuGet
- Connect to the Payroll API
- Welcome - tutorial slide
- Introduction Payroll Engine Client Services Tutorials
- series of tutorial videos
- GitHub repo: PayrollEngine.Client.Tutorials
- Introduction Payroll Engine Client Services Tutorials
- Prerequisites
- Payroll Engine Backend
- URL
- Endpoints by groups
- Visual Studio
- VS Community edition
- .NET 8
- Payroll Engine Backend
- Client Services
- Example of a payroll client
- Model, Service, Exchange and Test
- Minimal .NET console application
- File > New > Project > Console App C#
- Name:
HelloPayrollEngineWorld - Framework:
.NET 8 - Do not use top-level statements: check
- Name:
- Edit
HelloPayrollEngineWorld.csproj- remove ImplicitUsings and Nullable
- add
using System;
- File > New > Project > Console App C#
- Payroll Engine Payroll NuGet
- Visual Studio Setup
- Tools > Options > NuGet Package Manager > Packages Sources > Ensure Payroll Engine source
- Install Payroll Engine NuGet
- Provided by the backend
- By version (
PayrollEngine.Client.Services.<Version>.nupkg) - Including pre releases
- By version (
- Manage NuGet Packages...
- Payroll Engine NuGet packages source
- Include prerelease: check
- PayrollEngine.Client.Services > Install
- Show installed packages
- Package updates
- Provided by the backend
- Content
- Client Services HTML help, requires Microsoft HTML Help
- JSON schemas for case test and exchange
- Client services sub packages
- Visual Studio Setup
- Connect to the Payroll API
- new PayrollHttpClient with fixed arguments
- Handles GET/POST/PUT/DELETE requests
- Disposable: using
- Single application instance
- test connection with
PayrollHttpClient.IsConnectionAvailable- show Hello Payroll Engine World!
- wait for 'press any key'
- new PayrollHttpClient with fixed arguments
