Coder Social home page Coder Social logo

cityhall-dotnet's Introduction

This is the .Net/C# library for City Hall Enterprise Settings Server

 ABOUT

 This project is written in C# 4.5 and can be installed using:
   Install-Package CityHall 



 USAGE

 The intention is to use the built-in City Hall web site for actual
 settings management, and then use this library for consuming those
 settings, in an application.  As such, there are only a few commands to 
 be familiar with:

 using CityHall;
 
 var asyncSettings = Settings(url, user, password); - Must be called to 
     initiate a session with City Hall. The password should be in 
     plaintext, it will be hashed by the library.
 
 asyncSettings.Logout(); - To be called when the session is over.
 
 asyncSettings.Get()- This should be the most common way to retrieve a
     value. To get the value of '/some_app/value1', use:
        string value = await asyncSettings.Get("/some_app/value1");

In case you need synchronous operations, the entire API is duplicated:

 using CityHall.Synchronous;
 var syncSettings = Settings(url, user, password);
 string value = syncSettings.Get("/some_app/value1");
 
You may also switch between them by using:

  var syncSettings = asyncSettings.SynchronousSettings();
 
 For more in depth information about this library, please check the wiki.


 LICENSE

  City Hall source files are made available under the terms of the GNU Affero General Public License (AGPL).

cityhall-dotnet's People

Contributors

f00f-nyc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.