Пример #1
0
        public static IEnumerable<HTMLInjection> GetHtmlInjections(IRepository repository = null)
        {
            if(repository == null)
                repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            return repository.HtmlInjections;
        }
Пример #2
0
        public static IEnumerable<HTMLInjection> GetHtmlInjections(IRepository repository = null)
        {
            if(repository == null)
                repository = new SPOnlineRepository(new ConfluenceClient(new Config()));

            return repository.HtmlInjections;
        }
Пример #3
0
        public static IEnumerable<Device> GetDevDevices()
        {
            var repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            var devices = repository.Devices.Where(d => !d.Name.IsGroup() && d.Name.Path.Contains("Development"));
            devices = devices.OrderByDescending(dev => dev.Created);
            return devices;
        }
Пример #4
0
        public static IEnumerable <Device> GetDevDevices()
        {
            var repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            var devices = repository.Devices.Where(d => !d.Name.IsGroup() && d.Name.Path.Contains("Development"));

            devices = devices.OrderByDescending(dev => dev.Created);
            return(devices);
        }
Пример #5
0
        public static IEnumerable <HTMLInjection> GetHtmlInjections(IRepository repository = null)
        {
            if (repository == null)
            {
                repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());
            }

            return(repository.HtmlInjections);
        }
Пример #6
0
        public static IEnumerable<Post> GetTopPosts()
        {
            // should be removed
            // repository should be instantiated by DI container
            var repository = new SPOnlineRepository(new ConfluenceClient(new Config()));

            var top_posts = repository.Posts.Where(p => p.IsTop).OrderByDescending(p=>p.Created);

            return top_posts;
        }
Пример #7
0
        public static IEnumerable <Post> GetTopPosts()
        {
            // should be removed
            // repository should be instantiated by DI container
            var repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            var top_posts = repository.Posts.Where(p => p.IsTop).OrderByDescending(p => p.Created);

            return(top_posts);
        }
Пример #8
0
        public static IEnumerable<Device> GetNewDevices()
        {
            // should be removed
            // repository should be instantiated by DI container
            var repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            var devices = repository.Devices.Where(dev =>
                                    dev.Label.IsEqualStrId(NetPing_modern.Properties.Resources.Guid_Label_New)
                            );
            devices = devices.OrderByDescending(dev => dev.Created);
            return devices;
        }
Пример #9
0
        public static IEnumerable <Device> GetNewDevices()
        {
            // should be removed
            // repository should be instantiated by DI container
            var repository = new SPOnlineRepository(GetConfluenceClient(), GetSharepointClientFactory());

            var devices = repository.Devices.Where(dev =>
                                                   dev.Label.IsEqualStrId(NetPing_modern.Properties.Resources.Guid_Label_New)
                                                   );

            devices = devices.OrderByDescending(dev => dev.Created);
            return(devices);
        }