The SDK is published as an open-source project and is available via the NuGet package manager.
-
NuGet Package: Daktela.Connector
-
GitHub Repository: Daktela/daktela-v6-dotnet-connector
Installation
You can install the package using the .NET CLI or the NuGet Package Manager in Visual Studio.
Using .NET CLI:
dotnet add package Daktela.Connector
Using Package Manager Console:
Install-Package Daktela.Connector
Implementation & Usage
The .NET SDK follows standard modern development patterns. For comprehensive instructions on how to register and use the connector within your application lifecycle, please refer to the README.md file in the official GitHub repository.
The repository documentation provides specific details on:
-
Dependency Injection: How to use
IServiceCollectionto register the Daktela client. -
Configuration: Binding your instance URL and API Access Token from
appsettings.json. -
Strongly Typed Requests: Working with
Contact,Activity, andTicketmodels. -
Asynchronous Operations: Utilizing
async/awaitfor non-blocking API calls.
Best Practices
-
Configuration Safety: Use the Options Pattern in .NET to validate your Daktela credentials at startup. Never check your API tokens into source control; use User Secrets for local development and Environment Variables or Azure Key Vault for production.
-
HttpClient Factory: The SDK is designed to work with
IHttpClientFactory. This ensures efficient socket management and prevents common issues like port exhaustion. -
JSON Serialization: The SDK uses
System.Text.Json. If you are extending the models, ensure you use the appropriate attributes to match the Daktela API naming conventions.