public static void Register(ClientDependencySettings cdSettings) { if (cdSettings.FileRegistrationProviderCollection[ProviderName] == null) { var provider = new HccPageHeaderProvider(); provider.Initialize(ProviderName, null); cdSettings.FileRegistrationProviderCollection.Add(provider); } }
protected override void OnInit(EventArgs e) { base.OnInit(e); var crl = new ClientResourceLoader(); Page.Form.Controls.Add(crl); Page.Form.Controls.Add(_phDependencies); _ltMiniProfiler = new LiteralControl(); Page.Form.Controls.Add(_ltMiniProfiler); HccPageHeaderProvider.Register(ClientDependencySettings.Instance); HccBodyProvider.Register(ClientDependencySettings.Instance); }