public IObservable <Win32SID> TrusteeAsync(Win32LogicalShareSecuritySetting inSecuritySetting, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveTargetAsync(scope, inSecuritySetting.AsCimInstance(), options);

            return(instances.Select(i => (Win32SID)scope.Mapper.Create(scope, i)));
        }
Exemple #2
0
        public IEnumerable <Win32Share> Element(Win32LogicalShareSecuritySetting inSetting, CimOperationOptions options = null)
        {
            var scope     = _scope;
            var instances = _resolver.ResolveSource(scope, inSetting.AsCimInstance(), options);

            return(instances.Select(i => (Win32Share)scope.Mapper.Create(scope, i)));
        }