示例#1
0
 public static void Register(ClientDependencySettings cdSettings)
 {
     if (cdSettings.FileRegistrationProviderCollection[ProviderName] == null)
     {
         var provider = new HccPageHeaderProvider();
         provider.Initialize(ProviderName, null);
         cdSettings.FileRegistrationProviderCollection.Add(provider);
     }
 }
示例#2
0
        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);
        }