/// <summary> /// The GenerateEdvidoRestClient. /// </summary> public static void GenerateEdvidoRestClient() { if (string.IsNullOrWhiteSpace(Url)) { return; } if (_edvidoRestClient == null) { lock (_syncLock) { if (_edvidoRestClient == null) { _edvidoRestClient = new EdvidoRestClient(baseUrl: Url, version: Version, clientId: ClientId, clientSecret: ClientSecret, tokenUrl: "oauth/token", username: Username, password: Password); } } } }
/// <summary> /// Initializes a new instance of the <see cref="ApiClient"/> class. /// </summary> /// <param name="edvidoRestClient">The edvidoRestClient<see cref="EdvidoRestClient"/>.</param> public ApiClient(EdvidoRestClient edvidoRestClient) { EdvidoRestClient = edvidoRestClient; Configuration = new Configuration(this); }