public void Start(string channelName)
        {
            var dg = Container.Resolve <IDeviceGroupProvider>();
            var am = Container.Resolve <IAccessChannelManager>();

            var devices = dg.RootDeviceGroup.GetAllDevices().Where(d => !d.Registration.Config.IsSimulated);

            _channel = am.GetChannel(channelName);

            _channel.Start();
            _channel.AddToUpdateList(devices);
        }
Пример #2
0
 public static void AddToUpdateList(this IAccessChannel channel,
                                    IEnumerable <IDevice> devices)
 {
     channel.AddToUpdateList(devices.Select(d => d.Registration.ClientAlias));
 }
Пример #3
0
 private static void AddToUpdateList(this IAccessChannel channel,
                                     IEnumerable <IAccessItemRegistration> registrations)
 {
     channel.AddToUpdateList(registrations.Select(x => x.ClientAlias));
 }