示例#1
0
        public CreateGlobalOptionSetsFileCSharpHandler(
            TextWriter writer
            , IOrganizationServiceExtented service
            , IWriteToOutput iWriteToOutput
            , CreateFileCSharpConfiguration config
            ) : base(writer, config.TabSpacer, config.AllDescriptions)
        {
            this._service        = service ?? throw new ArgumentNullException(nameof(service));
            this._iWriteToOutput = iWriteToOutput ?? throw new ArgumentNullException(nameof(iWriteToOutput));

            this._config = config;

            this._descriptor = new SolutionComponentDescriptor(_service)
            {
                WithManagedInfo = config.WithManagedInfo,
            };

            this._dependencyRepository = new DependencyRepository(this._service);
            this._descriptorHandler    = new DependencyDescriptionHandler(this._descriptor);
            this._repositoryStringMap  = new StringMapRepository(_service);

            if (config.ConstantType == ConstantType.ReadOnlyField)
            {
                _fieldHeader = "static readonly";
            }
            else
            {
                _fieldHeader = "const";
            }
        }
示例#2
0
        public CreateGlobalOptionSetsFileJavaScriptHandler(
            TextWriter writer
            , IOrganizationServiceExtented service
            , IWriteToOutput iWriteToOutput
            , string tabSpacer
            , bool withDependentComponents
            ) : base(writer, tabSpacer, true)
        {
            this._service                 = service;
            this._iWriteToOutput          = iWriteToOutput;
            this._withDependentComponents = withDependentComponents;

            this._descriptor           = new SolutionComponentDescriptor(_service);
            this._dependencyRepository = new DependencyRepository(this._service);
            this._descriptorHandler    = new DependencyDescriptionHandler(this._descriptor);

            this._repositoryStringMap = new StringMapRepository(_service);
        }
        public CreateFileWithEntityMetadataJavaScriptHandler(
            TextWriter writer
            , CreateFileJavaScriptConfiguration config
            , IOrganizationServiceExtented service
            ) : base(writer, config.TabSpacer, true)
        {
            this._config  = config;
            this._service = service;

            this._solutionComponentDescriptor = new SolutionComponentDescriptor(_service)
            {
                WithManagedInfo = false,
            };

            if (_config.WithDependentComponents)
            {
                this._dependencyRepository = new DependencyRepository(_service);
                this._descriptorHandler    = new DependencyDescriptionHandler(_solutionComponentDescriptor);
            }
        }
示例#4
0
 public EntityAttributesDependentComponentsHandler(DependencyRepository dependencyRepository, SolutionComponentDescriptor descriptor, DependencyDescriptionHandler descriptorHandler)
 {
     this._dependencyRepository = dependencyRepository;
     this._descriptor           = descriptor;
     this._descriptorHandler    = descriptorHandler;
 }