Пример #1
0
        public static void PerformTest()
        {
            var client = new EnumerationClient(Optimize, "http://localhost:12345/Enumeration");

            client.BindFilterDialect(FilterMap.DefaultDialect, typeof(JmxNotificationFilter));

            int countEstimate = client.EstimateCount("http://tempuri.org", new Filter(FilterMap.DefaultDialect, new JmxNotificationFilter()));

            Console.WriteLine("Client: Total items estimate: {0}", countEstimate);

            foreach (EndpointReference item in client.EnumerateEPR("http://tempuri.org", new Filter(FilterMap.DefaultDialect, new JmxNotificationFilter()), BatchSize))
            {
                Console.WriteLine("Client: Got item {0}", item);
            }
        }
Пример #2
0
 public bool IsRegistered(ObjectName name)
 {
     return(_enumClient.EnumerateEPR(Schema.DynamicMBeanResourceUri, null, 1,
                                     name.CreateSelectorSet()).Count() > 0);
 }