static void ThreadMainWithParameters(ACI aci, Agilor.Interface.Val.Value val) { try { aci.SetValue(val); } catch { } string debugMsg = "ACI IP:" + aci.IP.ToString() + "; ACI PORT:" + aci.Port.ToString() + "; ACI SERVERNAME:" + aci.Name + "; VAl:" + val.Val.ToString() + "; Thread id:" + Thread.CurrentThread.ToString(); System.Diagnostics.Debug.Write(debugMsg); }
public void TestGenerateACI() { string paymentSplitterSource = File.ReadAllText(Path.Combine(ResourcePath, "contracts", "PaymentSplitter.aes"), Encoding.UTF8); ACI aci = nativeClient.GenerateACI(paymentSplitterSource); Assert.AreEqual(TestConstants.PaymentSplitterACI, ((JObject)aci.EncodedAci).ToString(Formatting.None)); }
public void tempMethod() { ACI aci = new ACI() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; dvContent.Controls.Clear(); dvContent.Controls.Add(aci); aci.Show(); }
private void btnACI_Click(object sender, EventArgs e) { if (checkCurrentEvent()) { SidePanel.Height = btnACI.Height; SidePanel.Top = btnACI.Top; ACI aboutPanel = new ACI() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; dvContent.Controls.Clear(); dvContent.Controls.Add(aboutPanel); aboutPanel.Show(); } }
/// <summary> /// 检查 ACI 是否为空 /// </summary> /// <returns></returns> private bool checkACIObject() { if (agilorACI != null) { return(true); } try { ACI_SERVER_NAME = ConfigurationManager.AppSettings["AgilorServerName"]; ACI_SERVER_IP = ConfigurationManager.AppSettings["AgilorServerIp"]; agilorACI = ACI.Instance(ACI_SERVER_NAME, ACI_SERVER_IP); if (agilorACI != null) { return(true); } } catch { } return(false); }
/// <summary> /// 检查 ACI 是否为空 /// </summary> /// <returns></returns> private bool checkACIObject() { if (agilorACI != null) { return(true); } try { agilorACI = ACI.Instance(ACI_SERVER_NAME, ACI_SERVER_IP); if (agilorACI != null) { return(true); } } catch { } return(false); }
public void Set(LAYER layer) { Layer = layer; gameObject.name = "Layer_" + layer.C2; LayerMaterial = new Material(GoDefaultMat); if (ACI.ContainsKey(layer.C62)) { LayerMaterial.color = ACI[layer.C62]; if (layer.C62 == 7 || layer.C62 == 8) { ZoomAdjust = 0.6f; } } else { LayerMaterial.color = Color.white; ZoomAdjust = 0.8f;//默认颜色的层线段宽度做限制 } }
static AgilorController() { string[] slaveIps = ConfigurationManager.AppSettings["AgilorServerSlaveIp"].Split(';'); string slaveName = ConfigurationManager.AppSettings["AgilorServerSlaveName"]; /* * foreach (string slaveIp in slaveIps) * { * if (slaveIp.Trim() == "") continue; * agilorSlaveACIs.Add(ACI.Instance(slaveName + slaveIp.Trim(), slaveIp.Trim())); * } */ foreach (string slaveIp in slaveIps) { if (slaveIp.Trim() == "") { continue; } Thread thread = new Thread(() => agilorSlaveACIs.Add(ACI.Instance(slaveName + slaveIp.Trim(), slaveIp.Trim()))); thread.Start(); } }
public SubscriptionManager(ref ACI aci) { this.aci = aci; }