示例#1
0
        public static ReadonlyGroupUnitFactory <TFilter> TryGetReader <TFilter>(this IHiveManager manager, Uri providerGroupRoot)
            where TFilter : class, IProviderTypeFilter
        {
            var group = manager.TryGetFirstGroup(providerGroupRoot);

            if (group == null)
            {
                return(null);
            }
            return(new ReadonlyGroupUnitFactory <TFilter>(group.Group.Readers, group.UriMatch.Root, manager.Context, manager.FrameworkContext));
        }