Exemplo n.º 1
0
        public Component(IComponentDependenciesFactory dependencies)
            : base(dependencies.DataConsumerFactory)
        {
            // DO NOT change the method signature of this constructor as
            // this would break all components in all applications that use
            // this framework!!

            Dependencies = dependencies;

            _assetDeploymentMixin = new AssetDeploymentMixin(
                this,
                dependencies.CssWriterFactory,
                dependencies.JavascriptWriterFactory,
                GetCommentName);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Do not change this constructor signature, it will break application
        /// classes that inherit from this class. Add dependencies to
        /// IRegionDependenciesFactory and IRegionDependencies
        /// </summary>
        public Region(IRegionDependenciesFactory dependencies)
            : base(dependencies.DataConsumerFactory)
        {
            // DO NOT change the method signature of this constructor as
            // this would break all regions in all applications that use
            // this framework!!

            _dependencies = dependencies;

            _assetDeploymentMixin = new AssetDeploymentMixin(
                this,
                dependencies.CssWriterFactory,
                dependencies.JavascriptWriterFactory,
                () => Name);

            WriteOpen       = w => { };
            WriteClose      = w => { };
            WriteChildOpen  = w => { };
            WriteChildClose = w => { };

            _dataScopeRules = dependencies.DataScopeProviderFactory.Create();
        }