1. SkyFoundry
  2. Project Haystack
  3. haystack-csharp




What is this repository for?

Connecting to Haystack 3.0 via SCRAM mechanism. Currently, this library provides a haystack client with a very low-level API for invoking ops and getting the result as a raw string. In the future we hope to add support for the Haystack data model as well.

How do I get set up?

Below is the main method found in HClient.cs. HClient is a very basic implementation and contains methods to create clients, get strings, and post strings. To use this you must pass in the uri, user, and pass as arguments when running the program. In the main method you can also see an example of the GetString method to get the information about the current client.

public static void Main(string[] args)
    if (args.Length != 3)
      Console.WriteLine("usage: HClient <uri> <user> <pass>");

    HClient client = MakeClient(args[0], args[1], args[2]);
    Console.WriteLine(client.GetString("about", new Dictionary<string, string>(), "text/zinc"));
  catch (Exception e)
    throw e;

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact.
  • Consider posting questions on the Project Haystack Forum