Ejemplo n.º 1
0
        public void ServiceEndpointCheck(Action <bool, Exception> completed)
        {
            DiagnosticsDomainContext diagCtx = new DiagnosticsDomainContext();


            diagCtx.ServiceEndpointCheck(result =>
            {
                Exception ex = null;
                if (result.HasError)
                {
                    ex = result.Error;
                    throw new Exception(result.Error.Message);
                }

                bool pass = ((InvokeOperation <bool>)result).Value;
                completed(pass, ex);
            }, null);
        }