示例#1
0
        private static async Task RunClient(string command, string[] parameters)
        {
            try
            {
                var client = new LMConnect.Client.Client("http://localhost");

                Miner result = await client.GetMinerAsync("P0YF0OFlXkW2fdy9HPZg5A");

                System.Console.WriteLine("OK - {0}.", result.Id);
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("NOK {0}.", ex.Message);
            }

            System.Console.ReadLine();
        }
示例#2
0
		public void Init()
		{
			this._client = new Client.Client(LMcloudServer);
		}
示例#3
0
 public void Init()
 {
     this._client = new Client.Client(LMcloudServer);
 }
示例#4
0
        private static async Task RunClient(string command, string[] parameters)
        {
            try
            {
                var client = new LMConnect.Client.Client("http://localhost");

                Miner result = await client.GetMinerAsync("P0YF0OFlXkW2fdy9HPZg5A");

                System.Console.WriteLine("OK - {0}.", result.Id);
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("NOK {0}.", ex.Message);
            }

            System.Console.ReadLine();
        }