private void registerSkinResolvers() { ISkinResolverRegistry skinResolverRegistry = container.Resolve <SkinResolverRegistry>(); skinResolverRegistry.Default = container.Resolve <OxiteSkinResolver>(); skinResolverRegistry.Add(container.Resolve <MobileSkinResolver>()); skinResolverRegistry.Add(container.Resolve <LegacySkinResolver>()); container.RegisterInstance(skinResolverRegistry); }
public void Execute(IDictionary <string, object> state) { ISkinResolverRegistry skinResolverRegistry = container.Resolve <SkinResolverRegistry>(); skinResolverRegistry.Default = container.Resolve <ISkinResolver>(); foreach (ISkinResolver skinResolver in container.ResolveAll <ISkinResolver>()) { skinResolverRegistry.Add(skinResolver); } container.RegisterInstance(skinResolverRegistry); }
/// <summary> /// Initializes a new instance of the ViewEnginesResultFilter class. /// </summary> /// <param name="skinResolvers"></param> /// <param name="context"></param> public ViewEnginesResultFilter(ISkinResolverRegistry skinResolvers, OxiteContext context) { this.skinResolvers = skinResolvers; this.context = context; }
public SkinResultFilter(ISkinResolverRegistry skinResolvers, Site site) { this.skinResolvers = skinResolvers; this.site = site; }
private static void registerSkinResolvers(IUnityContainer container) { ISkinResolverRegistry skinResolverRegistry = container.Resolve <ISkinResolverRegistry>(); skinResolverRegistry.Add(container.Resolve <ConferenceSkinResolver>()); }