Esempio n. 1
0
 public Endpoint(Guid id, IHealthMonitor monitor, string address, string name, string group)
 {
     Id = id;
     _monitor = monitor;
     Address = address;
     Name = name;
     Group = group;
 }
        public MonitorableEndpoint(EndpointIdentity identity, IHealthMonitor monitor)
        {
            if (identity == null)
                throw new ArgumentNullException(nameof(identity));
            if (monitor == null)
                throw new ArgumentNullException(nameof(monitor));

            Identity = identity;
            Monitor = monitor;
        }
 protected void GivenIHaveHealthMonitor()
 {
     this.Container.RegisterType<IHealthMonitor, HealthMonitor>();
     this.healthMonitor = this.Container.Resolve<IHealthMonitor>();
 }