Configuration - grcodemonkey/iron_sharp GitHub Wiki

Configuring IronSharp

Option 1 - Specify the config explicitly when creating your client

IronMqRestClient ironMq = IronSharp.IronMQ.Client.New(
    token: "Q-FE26F3RRum55845=", 
    projectId: "558455584555845",
    host: IronMqCloudHosts.RACKSPACE_ORD);

Option 2 - Passing a config object

var config = new IronClientConfig
{
    Token = "Q-FE26F3RRum55845=",
    ProjectId = "558455584555845",
};

IronMqRestClient ironMq = IronSharp.IronMQ.Client.New(config);

Option 3 - Using the Iron.json environment config model

IronMqRestClient ironMq = IronSharp.IronMQ.Client.New();

How does the iron.json configuration work?

Option 4 - Specify an environment name

IronMqRestClient ironMq = IronSharp.IronMQ.Client.New("development");

How do I specify the configuration for each environment?

NOTE: IronMQ is the only product that supports different hosts.

  • Amazon US East (default)
  • Rackspace ORD (chicago)
  • Rackspace DFW (dallas-fort worth)