示例#1
0
        private string ConnectToBrother()
        {
            TableHelper table = new TableHelper();

            try
            {
                IBrotherConnection proxy = Connect();
                proxy.AreYouAlive();

                response = "Instance 0 is alive.";


                table.AddEvidence(new EvidenceEntity(response));
            }
            catch (Exception e)
            {
                response = "Instance 0 is not alive.";
                table.AddEvidence(new EvidenceEntity(response, e.Message));
            }

            return(response);
        }