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); }
public static void AddToUpdateList(this IAccessChannel channel, IEnumerable <IDevice> devices) { channel.AddToUpdateList(devices.Select(d => d.Registration.ClientAlias)); }
private static void AddToUpdateList(this IAccessChannel channel, IEnumerable <IAccessItemRegistration> registrations) { channel.AddToUpdateList(registrations.Select(x => x.ClientAlias)); }