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); }
private static void registerSkinResolvers(IUnityContainer container) { ISkinResolverRegistry skinResolverRegistry = container.Resolve <ISkinResolverRegistry>(); skinResolverRegistry.Add(container.Resolve <ConferenceSkinResolver>()); }