public IEnumerable <Win32NTEventlogFile> Log(Win32NTLogEvent inRecord, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSource(scope, inRecord.AsCimInstance(), options); return(instances.Select(i => (Win32NTEventlogFile)scope.Mapper.Create(scope, i))); }
public IObservable <Win32ComputerSystem> ComputerAsync(Win32NTLogEvent inRecord, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveSourceAsync(scope, inRecord.AsCimInstance(), options); return(instances.Select(i => (Win32ComputerSystem)scope.Mapper.Create(scope, i))); }
public IObservable <Win32UserAccount> UserAsync(Win32NTLogEvent inRecord, CimOperationOptions options = null) { var scope = _scope; var instances = _resolver.ResolveTargetAsync(scope, inRecord.AsCimInstance(), options); return(instances.Select(i => (Win32UserAccount)scope.Mapper.Create(scope, i))); }