/// <summary> /// Initialize configuration. /// </summary> /// /// <param name="apiKey">Postmast API key.</param> /// <param name="password">Postmaster password (may be optional).</param> public static void Init(string apiKey, string password) { // load json.net resource string resource = "Postmaster.io.Libraries.Newtonsoft.Json.dll"; EmbeddedAssembly.Load(resource, "Newtonsoft.Json.dll"); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; Config.ApiKey = apiKey; Config.Password = password; }