Exemple #1
0
        public DefaultCSharpClientProxyGenerator(IBitCodeGeneratorOrderedProjectsProvider bitCodeGeneratorOrderedProjectsProvider,
                                                 IBitConfigProvider bitConfigProvider,
                                                 IProjectDtoControllersProvider dtoControllersProvider,
                                                 ICSharpClientContextGenerator contextGenerator,
                                                 ICSharpClientMetadataGenerator metadataGenerator,
                                                 IProjectDtosProvider dtosProvider,
                                                 IProjectEnumTypesProvider enumsProvider)
        {
            if (bitCodeGeneratorOrderedProjectsProvider == null)
            {
                throw new ArgumentNullException(nameof(bitCodeGeneratorOrderedProjectsProvider));
            }

            if (bitConfigProvider == null)
            {
                throw new ArgumentNullException(nameof(bitConfigProvider));
            }

            if (dtoControllersProvider == null)
            {
                throw new ArgumentNullException(nameof(dtoControllersProvider));
            }

            if (contextGenerator == null)
            {
                throw new ArgumentNullException(nameof(contextGenerator));
            }

            if (metadataGenerator == null)
            {
                throw new ArgumentNullException(nameof(metadataGenerator));
            }

            if (dtosProvider == null)
            {
                throw new ArgumentNullException(nameof(dtosProvider));
            }

            if (enumsProvider == null)
            {
                throw new ArgumentNullException(nameof(enumsProvider));
            }

            _bitCodeGeneratorOrderedProjectsProvider = bitCodeGeneratorOrderedProjectsProvider;
            _bitConfigProvider      = bitConfigProvider;
            _dtoControllersProvider = dtoControllersProvider;
            _contextGenerator       = contextGenerator;
            _metadataGenerator      = metadataGenerator;
            _dtosProvider           = dtosProvider;
            _enumsProvider          = enumsProvider;
        }
        public DefaultHtmlClientProxyGenerator(IBitCodeGeneratorOrderedProjectsProvider solutionProjectsSelector, IBitCodeGeneratorMappingsProvider contextMappingsProvider, IProjectDtosProvider dtosProvider, IHtmlClientProxyDtosGenerator dtoGenerator, IHtmlClientContextGenerator contextGenerator, IProjectDtoControllersProvider dtoControllersProvider, IProjectEnumTypesProvider projectEnumTypesProvider)
        {
            if (solutionProjectsSelector == null)
            {
                throw new ArgumentNullException(nameof(solutionProjectsSelector));
            }

            if (contextMappingsProvider == null)
            {
                throw new ArgumentNullException(nameof(contextMappingsProvider));
            }

            if (dtosProvider == null)
            {
                throw new ArgumentNullException(nameof(dtosProvider));
            }

            if (dtosProvider == null)
            {
                throw new ArgumentNullException(nameof(dtosProvider));
            }

            if (projectEnumTypesProvider == null)
            {
                throw new ArgumentNullException(nameof(projectEnumTypesProvider));
            }

            if (contextGenerator == null)
            {
                throw new ArgumentNullException(nameof(contextGenerator));
            }

            if (dtoControllersProvider == null)
            {
                throw new ArgumentNullException(nameof(dtoControllersProvider));
            }

            _solutionProjectsSelector         = solutionProjectsSelector;
            _bitCodeGeneratorMappingsProvider = contextMappingsProvider;
            _dtosProvider             = dtosProvider;
            _dtoGenerator             = dtoGenerator;
            _contextGenerator         = contextGenerator;
            _dtoControllersProvider   = dtoControllersProvider;
            _projectEnumTypesProvider = projectEnumTypesProvider;
        }
        public TypeScriptJayDataClientProxyGenerator(IBitCodeGeneratorOrderedProjectsProvider bitCodeGeneratorOrderedProjectsProvider, IBitConfigProvider bitConfigProvider, IProjectDtosProvider dtosProvider, ITypeScriptClientProxyDtosGenerator dtoGenerator, ITypeScriptClientContextGenerator contextGenerator, IProjectDtoControllersProvider dtoControllersProvider, IProjectEnumTypesProvider projectEnumTypesProvider)
        {
            if (bitCodeGeneratorOrderedProjectsProvider == null)
            {
                throw new ArgumentNullException(nameof(bitCodeGeneratorOrderedProjectsProvider));
            }

            if (bitConfigProvider == null)
            {
                throw new ArgumentNullException(nameof(bitConfigProvider));
            }

            if (dtosProvider == null)
            {
                throw new ArgumentNullException(nameof(dtosProvider));
            }

            if (dtoGenerator == null)
            {
                throw new ArgumentNullException(nameof(dtoGenerator));
            }

            if (projectEnumTypesProvider == null)
            {
                throw new ArgumentNullException(nameof(projectEnumTypesProvider));
            }

            if (contextGenerator == null)
            {
                throw new ArgumentNullException(nameof(contextGenerator));
            }

            if (dtoControllersProvider == null)
            {
                throw new ArgumentNullException(nameof(dtoControllersProvider));
            }

            _bitCodeGeneratorOrderedProjectsProvider = bitCodeGeneratorOrderedProjectsProvider;
            _bitConfigProvider        = bitConfigProvider;
            _dtosProvider             = dtosProvider;
            _dtoGenerator             = dtoGenerator;
            _contextGenerator         = contextGenerator;
            _dtoControllersProvider   = dtoControllersProvider;
            _projectEnumTypesProvider = projectEnumTypesProvider;
        }