Пример #1
0
        /// <summary>
        /// Adds the <see cref="SecretsFileLocalDeploymentDestinationFileSystemSiteProvider"/> implementation of <see cref="IDeploymentDestination_FileSystemSiteProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddSecretsFileLocalDeploymentDestinationFileSystemSiteProvider(this IServiceCollection services,
                                                                                                        IServiceAction <ILocalDeploymentSecretsSerializationProvider> addLocalDeploymentSecretsSerializationProvider,
                                                                                                        IServiceAction <ILocalFileSystemOperator> addLocalFileSystemOperator,
                                                                                                        IServiceAction <IStringlyTypedPathOperator> addStringlyTypedPathOperator)
        {
            services
            .AddSingleton <IDeploymentDestination_FileSystemSiteProvider, SecretsFileLocalDeploymentDestinationFileSystemSiteProvider>()
            .RunServiceAction(addLocalDeploymentSecretsSerializationProvider)
            .RunServiceAction(addLocalFileSystemOperator)
            .RunServiceAction(addStringlyTypedPathOperator)
            ;

            return(services);
        }
Пример #2
0
        /// <summary>
        /// Adds the <see cref="IEntryPointProjectBuildOutputBinariesDirectoryPathProvider"/> service.
        /// </summary>
        public static IServiceAction <IEntryPointProjectBuildOutputBinariesDirectoryPathProvider> AddEntryPointProjectBuildOutputBinariesDirectoryPathProviderAction(this IServiceCollection services,
                                                                                                                                                                     IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider)
        {
            var serviceAction = new ServiceAction <IEntryPointProjectBuildOutputBinariesDirectoryPathProvider>(() => services.AddEntryPointProjectBuildOutputBinariesDirectoryPathProvider(
                                                                                                                   addEntryPointProjectNameProvider));

            return(serviceAction);
        }
Пример #3
0
        /// <summary>
        /// Adds the <see cref="IEntryPointProjectBuildOutputPublishDirectoryPathProvider"/> service.
        /// </summary>
        public static IServiceAction <IEntryPointProjectBuildOutputPublishDirectoryPathProvider> AddEntryPointProjectBuildOutputPublishDirectoryPathProviderAction(this IServiceCollection services,
                                                                                                                                                                   IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider,
                                                                                                                                                                   IServiceAction <IBuildConfigurationNameProvider> addBuildConfigurationNameProvider)
        {
            var serviceAction = new ServiceAction <IEntryPointProjectBuildOutputPublishDirectoryPathProvider>(() => services.AddEntryPointProjectBuildOutputPublishDirectoryPathProvider(
                                                                                                                  addEntryPointProjectNameProvider,
                                                                                                                  addBuildConfigurationNameProvider));

            return(serviceAction);
        }
Пример #4
0
        /// <summary>
        /// Adds the <see cref="SecretsDirectoryPathProvider"/> implementation of <see cref="IMachineLocationAwareSecretsDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IMachineLocationAwareSecretsDirectoryPathProvider> AddSecretsDirectoryPathProviderAsMachineLocationAwareSecretsDirectoryPathProviderAction(this IServiceCollection services,
                                                                                                                                                                                 IServiceAction <IExecutableDirectoryPathProvider> executableDirectoryPathProviderAction,
                                                                                                                                                                                 IServiceAction <IMachineLocationProvider> machineLocationProviderAction,
                                                                                                                                                                                 IServiceAction <IOrganizationDataSecretsDirectoryPathProvider> organizationDataSecretsDirectoryPathProviderAction)
        {
            var serviceAction = ServiceAction.New <IMachineLocationAwareSecretsDirectoryPathProvider>(() => services.AddSecretsDirectoryPathProviderAsMachineLocationAwareSecretsDirectoryPathProvider(
                                                                                                          executableDirectoryPathProviderAction,
                                                                                                          machineLocationProviderAction,
                                                                                                          organizationDataSecretsDirectoryPathProviderAction));

            return(serviceAction);
        }
Пример #5
0
        /// <summary>
        /// Adds the <see cref="RepositoryNameFromLocalDirectoryPathConvention"/> implementation of <see cref="IRepositoryNameFromLocalDirectoryPathConvention"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IRepositoryNameFromLocalDirectoryPathConvention> AddRepositoryNameFromLocalDirectoryPathConventionAction(this IServiceCollection services,
                                                                                                                                               IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction)
        {
            var serviceAction = ServiceAction.New <IRepositoryNameFromLocalDirectoryPathConvention>(() => services.AddRepositoryNameFromLocalDirectoryPathConvention(
                                                                                                        stringlyTypedPathOperatorAction));

            return(serviceAction);
        }
Пример #6
0
        /// <summary>
        /// Adds the <see cref="ProgramNameDirectoryNameProvider"/> implementation of <see cref="IProgramNameDirectoryNameProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static ServiceAction <IProgramNameDirectoryNameProvider> AddD0005ProgramNameDirectoryNameProviderAction(this IServiceCollection services,
                                                                                                                       IServiceAction <IProgramNameProvider> programNameProvider)
        {
            var serviceAction = ServiceAction <IProgramNameDirectoryNameProvider> .New(() => services.AddD0005ProgramNameDirectoryNameProvider(
                                                                                           programNameProvider));

            return(serviceAction);
        }
        /// <summary>
        /// Adds the <see cref="NewtonsoftJsonFileSerializationOperator"/> implementation of <see cref="IJsonFileSerializationOperator"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IJsonFileSerializationOperator> AddNewtonsoftJsonFileSerializationOperatorAction(this IServiceAction _)
        {
            var serviceAction = _.New <IJsonFileSerializationOperator>(services => services.AddNewtonsoftJsonFileSerializationOperator());

            return(serviceAction);
        }
Пример #8
0
        /// <summary>
        /// Adds the <see cref="IAwsEc2ServerSecretsFileNameProvider"/> service.
        /// </summary>
        public static IServiceCollection AddRemoteDeploymentAwsEc2ServerSecretsFileNameProvider(this IServiceCollection services,
                                                                                                IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            services.AddRemoteDeploymentSerializationAwsEc2ServerSecretsFileNameProvider_Old(
                services.AddRemoteDeploymentSecretsSerializationProviderAction(addDeploymentDestinationSecretsFileNameProvider));

            return(services);
        }
Пример #9
0
        /// <summary>
        /// Adds the <see cref="IAwsEc2ServerSecretsFileNameProvider"/> service.
        /// </summary>
        public static IServiceAction <IAwsEc2ServerSecretsFileNameProvider> AddRemoteDeploymentAwsEc2ServerSecretsFileNameProviderAction(this IServiceCollection services,
                                                                                                                                         IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            var serviceAction = new ServiceAction <IAwsEc2ServerSecretsFileNameProvider>(() => services.AddRemoteDeploymentAwsEc2ServerSecretsFileNameProvider(
                                                                                             addDeploymentDestinationSecretsFileNameProvider));

            return(serviceAction);
        }
Пример #10
0
        /// <summary>
        /// Adds the <see cref="IDeploymentDestination_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceCollection AddLocalDeploymentDestinationFileSystemSiteProvider(this IServiceCollection services,
                                                                                             IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            services.AddSecretsFileLocalDeploymentDestinationFileSystemSiteProvider_Old(
                services.AddLocalDeploymentSecretsSerializationProviderAction(addDeploymentDestinationSecretsFileNameProvider),
                services.AddLocalFileSystemOperatorAction().localFileSystemOperatorAction,
                services.AddStringlyTypedPathOperatorAction());

            return(services);
        }
Пример #11
0
        /// <summary>
        /// Adds the <see cref="IDeploymentDestination_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceAction <IDeploymentDestination_FileSystemSiteProvider> AddLocalDeploymentDestinationFileSystemSiteProviderAction(this IServiceCollection services,
                                                                                                                                               IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            var serviceAction = new ServiceAction <IDeploymentDestination_FileSystemSiteProvider>(() => services.AddLocalDeploymentDestinationFileSystemSiteProvider(
                                                                                                      addDeploymentDestinationSecretsFileNameProvider));

            return(serviceAction);
        }
Пример #12
0
        /// <summary>
        /// Adds the <see cref="ILocalDeploymentSecretsSerializationProvider"/> service.
        /// </summary>
        public static IServiceCollection AddLocalDeploymentSecretsSerializationProvider(this IServiceCollection services,
                                                                                        IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            services.AddDefaultLocalDeploymentSecretsSerializationProvider_Old(
                addDeploymentDestinationSecretsFileNameProvider,
                services.AddSecretsDirectoryFilePathProviderAction(),
                services.AddJsonFileSerializationOperatorAction());

            return(services);
        }
Пример #13
0
        /// <summary>
        /// Adds the <see cref="IDeploymentDestination_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceCollection AddRemoteDeploymentDestinationFileSystemSiteProvider(this IServiceCollection services,
                                                                                              IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            services.AddRemoteDeploymentDestinationFileSystemSiteProvider(
                addDeploymentDestinationSecretsFileNameProvider,
                services.AddRemoteDeploymentAwsEc2ServerHostFriendlyNameProviderAction(
                    addDeploymentDestinationSecretsFileNameProvider));

            return(services);
        }
        /// <summary>
        /// Adds the <see cref="EmailSender"/> implementation of <see cref="ILessSecureGmailNetMailSender"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <ILessSecureGmailNetMailSender> AddLessSecureGmailNetMailSenderAction(this IServiceCollection services,
                                                                                                           IServiceAction <IGmailAuthenticationProvider> addGmailAuthenticationProvider)
        {
            var serviceAction = ServiceAction.New <ILessSecureGmailNetMailSender>(() => services.AddLessSecureGmailNetMailSender(addGmailAuthenticationProvider));

            return(serviceAction);
        }
Пример #15
0
        /// <summary>
        /// Adds the <see cref="OrganizationSharedDataDirectoryPathProvider"/> implementation of <see cref="IOrganizationSharedDataDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IOrganizationSharedDataDirectoryPathProvider> AddOrganizationSharedDataDirectoryPathProviderAction(this IServiceAction _,
                                                                                                                                         IServiceAction <IOrganizationDataDirectoryPathProvider> organizationDataDirectoryPathProviderAction)
        {
            var serviceAction = _.New <IOrganizationSharedDataDirectoryPathProvider>(services => services.AddOrganizationSharedDataDirectoryPathProvider(
                                                                                         organizationDataDirectoryPathProviderAction));

            return(serviceAction);
        }
Пример #16
0
        /// <summary>
        /// Adds the <see cref="IDeploymentDestination_SecretsDirectory_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceCollection AddRemoteDeploymentDestination_SecretsDirectory_FileSystemSiteProvider(this IServiceCollection services,
                                                                                                                IServiceAction <IAwsEc2ServerHostFriendlyNameProvider> addAwsEc2ServerHostFriendlyNameProvider,
                                                                                                                IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            services.AddDefaultRemoteDeploymentDestination_SecretsDirectory_FileSystemSiteProvider_Old(
                services.AddRemoteFileSystemOperatorAction(
                    addAwsEc2ServerHostFriendlyNameProvider),
                services.AddRemoteDeploymentSecretsSerializationProviderAction(
                    addDeploymentDestinationSecretsFileNameProvider));

            return(services);
        }
Пример #17
0
        /// <summary>
        /// Adds the <see cref="OrganizationSharedDataDirectoryFilePathProvider"/> implementation of <see cref="IOrganizationSharedDataDirectoryFilePathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IOrganizationSharedDataDirectoryFilePathProvider> AddOrganizationSharedDataDirectoryFilePathProviderAction(this IServiceAction _,
                                                                                                                                                 IServiceAction <IOrganizationSharedDataDirectoryPathProvider> organizationSharedDataDirectoryPathProviderAction,
                                                                                                                                                 IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction)
        {
            var serviceAction = _.New <IOrganizationSharedDataDirectoryFilePathProvider>(services => services.AddOrganizationSharedDataDirectoryFilePathProvider(
                                                                                             organizationSharedDataDirectoryPathProviderAction,
                                                                                             stringlyTypedPathOperatorAction));

            return(serviceAction);
        }
Пример #18
0
        /// <summary>
        /// Adds the <see cref="IDeploymentDestination_SecretsDirectory_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceAction <IDeploymentDestination_SecretsDirectory_FileSystemSiteProvider> AddRemoteDeploymentDestination_SecretsDirectory_FileSystemSiteProviderAction(this IServiceCollection services,
                                                                                                                                                                                   IServiceAction <IAwsEc2ServerHostFriendlyNameProvider> addAwsEc2ServerHostFriendlyNameProvider,
                                                                                                                                                                                   IServiceAction <IDeploymentDestinationSecretsFileNameProvider> addDeploymentDestinationSecretsFileNameProvider)
        {
            var serviceAction = new ServiceAction <IDeploymentDestination_SecretsDirectory_FileSystemSiteProvider>(() => services.AddRemoteDeploymentDestination_SecretsDirectory_FileSystemSiteProvider(
                                                                                                                       addAwsEc2ServerHostFriendlyNameProvider,
                                                                                                                       addDeploymentDestinationSecretsFileNameProvider));

            return(serviceAction);
        }
Пример #19
0
        /// <summary>
        /// Adds the <see cref="SecretsDirectoryPathProvider"/> implementation of <see cref="IOrganizationDataSecretsDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddSecretsDirectoryPathProviderAsOrganizationDataSecretsDirectoryPathProvider(this IServiceCollection services,
                                                                                                                       IServiceAction <IOrganizationDataDirectoryPathProvider> organizationDataDirectoryPathProviderAction,
                                                                                                                       IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction)
        {
            services
            .Run(organizationDataDirectoryPathProviderAction)
            .Run(stringlyTypedPathOperatorAction)
            .AddSingleton <IOrganizationDataSecretsDirectoryPathProvider, SecretsDirectoryPathProvider>();

            return(services);
        }
Пример #20
0
        /// <summary>
        /// Adds the <see cref="IDeploymentSource_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceCollection AddPublishDeploymentSourceFileSystemSiteProvider(this IServiceCollection services,
                                                                                          IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider,
                                                                                          IServiceAction <IBuildConfigurationNameProvider> addBuildConfigurationNameProvider)
        {
            services.AddDefaultDeploymentSourceFileSystemSiteProvider_Old(
                services.AddPublishProjectBuildOutputBinariesDirectoryPathProviderAction(
                    addEntryPointProjectNameProvider,
                    addBuildConfigurationNameProvider),
                services.AddLocalFileSystemOperatorAction().localFileSystemOperatorAction,
                services.AddStringlyTypedPathOperatorAction());

            return(services);
        }
Пример #21
0
        /// <summary>
        /// Adds the <see cref="SecretsDirectoryPathProvider"/> implementation of <see cref="IMachineLocationAwareSecretsDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddSecretsDirectoryPathProviderAsMachineLocationAwareSecretsDirectoryPathProvider(this IServiceCollection services,
                                                                                                                           IServiceAction <IExecutableDirectoryPathProvider> executableDirectoryPathProviderAction,
                                                                                                                           IServiceAction <IMachineLocationProvider> machineLocationProviderAction,
                                                                                                                           IServiceAction <IOrganizationDataSecretsDirectoryPathProvider> organizationDataSecretsDirectoryPathProviderAction)
        {
            services.AddSingleton <IMachineLocationAwareSecretsDirectoryPathProvider, SecretsDirectoryPathProvider>()
            .Run(executableDirectoryPathProviderAction)
            .Run(machineLocationProviderAction)
            .Run(organizationDataSecretsDirectoryPathProviderAction)
            ;

            return(services);
        }
Пример #22
0
        /// <summary>
        /// Adds the <see cref="IDeploymentSource_FileSystemSiteProvider"/> service.
        /// </summary>
        public static IServiceAction <IDeploymentSource_FileSystemSiteProvider> AddPublishDeploymentSourceFileSystemSiteProviderAction(this IServiceCollection services,
                                                                                                                                       IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider,
                                                                                                                                       IServiceAction <IBuildConfigurationNameProvider> addBuildConfigurationNameProvider)
        {
            var serviceAction = new ServiceAction <IDeploymentSource_FileSystemSiteProvider>(() => services.AddPublishDeploymentSourceFileSystemSiteProvider(
                                                                                                 addEntryPointProjectNameProvider,
                                                                                                 addBuildConfigurationNameProvider));

            return(serviceAction);
        }
Пример #23
0
        /// <summary>
        /// Adds the <see cref="RepositoryNameFromLocalDirectoryPathConvention"/> implementation of <see cref="IRepositoryNameFromLocalDirectoryPathConvention"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddRepositoryNameFromLocalDirectoryPathConvention(this IServiceCollection services,
                                                                                           IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction)
        {
            services
            .AddSingleton <IRepositoryNameFromLocalDirectoryPathConvention, RepositoryNameFromLocalDirectoryPathConvention>()
            .Run(stringlyTypedPathOperatorAction)
            ;

            return(services);
        }
        /// <summary>
        /// Adds the <see cref="MachineLocationAwareSecretsDirectoryPathProvider"/> implementation of <see cref="ISecretsDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddMachineLocationAwareSecretsDirectoryPathProvider(this IServiceCollection services,
                                                                                             IServiceAction <IExecutableFileDirectoryPathProvider> executableFileDirectoryPathProviderAction,
                                                                                             IServiceAction <IMachineLocationProvider> machineLocationProviderAction,
                                                                                             IServiceAction <IRivetOrganizationSecretsDirectoryPathProvider> rivetOrganizationSecretsDirectoryPathProviderAction)
        {
            services
            .AddSingleton <ISecretsDirectoryPathProvider, MachineLocationAwareSecretsDirectoryPathProvider>()
            .Run(executableFileDirectoryPathProviderAction)
            .Run(machineLocationProviderAction)
            .Run(rivetOrganizationSecretsDirectoryPathProviderAction)
            ;

            return(services);
        }
Пример #25
0
 /// <summary>
 /// Adds the <see cref="IEntryPointProjectBuildOutputBinariesDirectoryPathProvider"/> service.
 /// </summary>
 public static IServiceCollection AddEntryPointProjectBuildOutputBinariesDirectoryPathProvider(this IServiceCollection services,
                                                                                               IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider)
 {
     services.AddStandardEntryPointProjectBuildOutputBinariesDirectoryPathProvider(
         services.AddEntryPointProjectDirectoryPathProviderAction(addEntryPointProjectNameProvider),
         services.AddSolutionAndProjectFileSystemConventionsAction());
     return(services);
 }
        /// <summary>
        /// Adds the <see cref="MachineLocationAwareSecretsDirectoryPathProvider"/> implementation of <see cref="ISecretsDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <ISecretsDirectoryPathProvider> AddMachineLocationAwareSecretsDirectoryPathProviderAction(this IServiceCollection services,
                                                                                                                               IServiceAction <IExecutableFileDirectoryPathProvider> executableFileDirectoryPathProviderAction,
                                                                                                                               IServiceAction <IMachineLocationProvider> machineLocationProviderAction,
                                                                                                                               IServiceAction <IRivetOrganizationSecretsDirectoryPathProvider> rivetOrganizationSecretsDirectoryPathProviderAction)
        {
            var serviceAction = ServiceAction <ISecretsDirectoryPathProvider> .New(() => services.AddMachineLocationAwareSecretsDirectoryPathProvider(
                                                                                       executableFileDirectoryPathProviderAction,
                                                                                       machineLocationProviderAction,
                                                                                       rivetOrganizationSecretsDirectoryPathProviderAction));

            return(serviceAction);
        }
Пример #27
0
 /// <summary>
 /// Adds the <see cref="IEntryPointProjectBuildOutputPublishDirectoryPathProvider"/> service.
 /// </summary>
 public static IServiceCollection AddEntryPointProjectBuildOutputPublishDirectoryPathProvider(this IServiceCollection services,
                                                                                              IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider,
                                                                                              IServiceAction <IBuildConfigurationNameProvider> addBuildConfigurationNameProvider)
 {
     services.AddStandardEntryPointProjectBuildOutputPublishDirectoryPathProvider(
         services.AddEntryPointProjectBuildOutputFrameworkDirectoryPathProviderAction(
             addEntryPointProjectNameProvider,
             addBuildConfigurationNameProvider),
         services.AddSolutionAndProjectFileSystemConventionsAction());
     return(services);
 }
        /// <summary>
        /// Adds the <see cref="OrganizationSharedDataDirectoryPathProvider"/> implementation of <see cref="IOrganizationSharedDataDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceCollection AddOrganizationSharedDataDirectoryPathProvider(this IServiceCollection services,
                                                                                        IServiceAction <IOrganizationDataDirectoryPathProvider> organizationDataDirectoryPathProviderAction)
        {
            services
            .Run(organizationDataDirectoryPathProviderAction)
            .AddSingleton <IOrganizationSharedDataDirectoryPathProvider, OrganizationSharedDataDirectoryPathProvider>();

            return(services);
        }
Пример #29
0
        /// <summary>
        /// Adds the <see cref="IEntryPointProjectFilePathProvider"/> service.
        /// </summary>
        public static IServiceAction <IEntryPointProjectFilePathProvider> AddEntryPointProjectFilePathProviderAction(this IServiceCollection services,
                                                                                                                     IServiceAction <IEntryPointProjectNameProvider> addEntryPointProjectNameProvider)
        {
            var serviceAction = new ServiceAction <IEntryPointProjectFilePathProvider>(() => services.AddEntryPointProjectFilePathProvider(addEntryPointProjectNameProvider));

            return(serviceAction);
        }
Пример #30
0
        /// <summary>
        /// Adds the <see cref="SecretsFileRemoteDeploymentDestinationFileSystemSiteProvider"/> implementation of <see cref="IDeploymentDestination_FileSystemSiteProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
        /// </summary>
        public static IServiceAction <IDeploymentDestination_FileSystemSiteProvider> AddSecretsFileRemoteDeploymentDestinationFileSystemSiteProviderAction(this IServiceCollection services,
                                                                                                                                                           IServiceAction <IRemoteDeploymentSecretsSerializationProvider> addRemoteDeploymentSecretsSerializationProvider,
                                                                                                                                                           IServiceAction <IRemoteFileSystemOperator> addRemoteFileSystemOperator,
                                                                                                                                                           IServiceAction <IStringlyTypedPathOperator> addStringlyTypedPathOperator)
        {
            var serviceAction = new ServiceAction <IDeploymentDestination_FileSystemSiteProvider>(() => services.AddSecretsFileRemoteDeploymentDestinationFileSystemSiteProvider(
                                                                                                      addRemoteDeploymentSecretsSerializationProvider,
                                                                                                      addRemoteFileSystemOperator,
                                                                                                      addStringlyTypedPathOperator));

            return(serviceAction);
        }