Nonfig
  • Home
  • Support

›Integrate SDKs

Overview

  • Introduction
  • Error Codes
  • Rate Limit
  • Restful APIs
  • More about SDKs

Getting Started Guides

  • NestJS Guide

Integrate SDKs

  • Overview
  • Java SDK
  • Nodejs SDK
  • Nestjs Plugin
  • Python SDK
  • .NET SDK

Install Agents

  • Overview
  • Kubernetes
  • Linux

Entities

  • Configuration
  • Organization
  • Policy
  • User

Dotnet SDK

Setup the SDK

# for nuget package manager
Install-Package nonfig -Version 1.0.0
# dotnet cli
dotnet add package nonfig --version 1.0.0
# Package Reference
<PackageReference Include="nonfig" Version="1.0.0" />

Initialize SDK

using System;
using library;

namespace app
{
class Program
{
static void Main(string[] args)
{
NonfigClient nonfigClient = new NonfigClient('__appBaseUrl__' , '__appSecret__', '__appKey__');
// ...
}
}

Retrieve single configuration

Search by Id

ConfigurationResponse response = nonfigClient.findById("__configId__");
Configuration config = response.Data[0]

  // config.Data = content of the file
  // ...other props

Search by Name

ConfigurationResponse response = nonfigClient.findByName("__fullyQualifiedName__");
Configuration config = response.Data[0]

  // config.Data = content of the file
  // ...other props

Retrive multiple configurations

Search by Path

ConfigurationResponse response = nonfigClient.findByPath("__path__");
Configuration config = response.Data[0]

  // config.Data = content of the file
  // ...other props

Search by Labels

ConfigurationResponse response = nonfigClient.findById(["label1", "label2"]);
Configuration config = response.Data[0]

  // config.Data = content of the file
  // ...other props

Methods

Nonfig

  • public NonfigClient(appBaseUrl, appSecret, appKey)
  • public NonfigDocument[] findByPath(String path)
  • public NonfigDocument[] findByLabels(String[] labels)
  • public NonfigDocument[] findById(String id)
  • public NonfigDocument[] findByName(String name)

ConfigurationResponse

  • public double Count()
  • public List<Configuration> Data()
  • public String Error()
  • public bool Success()

Configuration

  • public String[] Label()
  • public String Data()
  • public String Description()
  • public String FullyQualifiedName()
  • public String Id()
  • public String Name()
  • public String Path()
  • public String Type()
  • public Double Version()
Last updated on 10/14/2020
← Python SDKOverview →
  • Setup the SDK
  • Initialize SDK
  • Retrieve single configuration
    • Search by Id
    • Search by Name
  • Retrive multiple configurations
    • Search by Path
    • Search by Labels
  • Methods
    • Nonfig
    • ConfigurationResponse
    • Configuration
Nonfig
Sitemap
Available SDKsInstall Agent
References
HomeReport an issueVisit our websiteControl Plane
More
Blog
Copyright © 2020 nonfig. All rights reserved.