Using .Net to access Assetic REST API
Introduction
.Net may be used as the development environment for integrating with Assetic.
Some code samples are provided to assist with getting started.
TLS 1.2
Assetic enforces the TLS 1.2 protocol, which is not the default protocol for versions of .Net prior to 4.6.
- For .NET 4.5. execute the following code before making a connection to Assetic:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
- For .NET 4.0. TLS 1.2 is not supported, however if .NET 4.5 (or above) is installed on the target system execute the following code before making a connection to Assetic:
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
- For .NET 3.5 or below the TLS 1.2 protocol is not supported
Code Sample
The following code sample illustrates the basis steps in creating Work Requests from Assetic
