Ejemplo n.º 1
0
        protected override void ConfigureObjectCollector()
        {
            if (ObjectCollector == null)
            {
                var wmiScope = ((FileConnectionProvider)ConnectionProvider).ConnectionScope;
                var accountProvider = new WindowsUsersProvider(new WmiDataProvider(wmiScope), this.TargetInfo);

                ItemTypeGenerator = new UserSID55ItemTypeGenerator(accountProvider);
                ObjectCollector = new UserSID55ObjectCollector(accountProvider);
            }
        }
Ejemplo n.º 2
0
        protected override void ConfigureObjectCollector()
        {
            if (base.ItemTypeGenerator == null)
            {
                var wmiScope        = ((FileConnectionProvider)ConnectionProvider).ConnectionScope;
                var accountProvider = new WindowsUsersProvider(new WmiDataProvider(wmiScope), this.TargetInfo);

                ItemTypeGenerator = new UserSID55ItemTypeGenerator(accountProvider);
                ObjectCollector   = new UserSID55ObjectCollector(accountProvider);
            }
        }