public StemsEngineSubContext([NotNull] Stem <TItem> stem)
        {
            var implementations = stem.Services.ServiceGroup
                                  .GetProvider(stem.GetType())
                                  .GetService <EngineImplementations <TItem> >();

            Identifiers          = new AttributeIdentifierProvider <TItem>(stem, implementations);
            Fields               = new AttributeFieldProvider <TItem>(stem, implementations);
            AuthorizationChecker = new StemAuthorizationChecker <TItem>(stem, implementations);
        }
Example #2
0
 private static AttributeFieldProvider <Artist> CreateProvider(Stem <Artist> stem)
 {
     return(new AttributeFieldProvider <Artist>(stem,
                                                stem.Services.ServiceGroup.GetProvider(stem.GetType()).GetService <EngineImplementations <Artist> >()));
 }