/// <summary> /// Adds the <see cref="OutputDirectoryPathProvider"/> implementation of <see cref="IOutputDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IOutputDirectoryPathProvider> AddOutputDirectoryPathProviderAction(this IServiceAction _, IServiceAction <IProcessStartTimeSpecificOutputDirectoryPathProvider> processStartTimeSpecificOutputDirectoryPathProviderAction) { var serviceAction = _.New <IOutputDirectoryPathProvider>(services => services.AddOutputDirectoryPathProvider( processStartTimeSpecificOutputDirectoryPathProviderAction)); return(serviceAction); }
/// <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); }
/// <summary> /// Adds the <see cref="ConstructorBasedRootOutputDirectoryPathProvider"/> implementation of <see cref="IRootOutputDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IRootOutputDirectoryPathProvider> AddConstructorBasedRootOutputDirectoryPathProviderAction(this IServiceAction _, string rootOutputDirectoryPath) { var serviceAction = _.New <IRootOutputDirectoryPathProvider>(services => services.AddConstructorBasedRootOutputDirectoryPathProvider( rootOutputDirectoryPath)); return(serviceAction); }
/// <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); }
/// <summary> /// Adds the <see cref="SecretsDirectoryFilePathProvider"/> implementation of <see cref="ISecretsDirectoryFilePathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <ISecretsDirectoryFilePathProvider> AddSecretsDirectoryFilePathProviderAction(this IServiceAction _, IServiceAction <ISecretsDirectoryPathProvider> secretsDirectoryPathProviderAction, IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction) { var serviceAction = _.New <ISecretsDirectoryFilePathProvider>(services => services.AddSecretsDirectoryFilePathProvider( secretsDirectoryPathProviderAction, stringlyTypedPathOperatorAction)); return(serviceAction); }
/// <summary> /// Adds the <see cref="RivetOrganizationDirectoryPathProvider"/> implementation of <see cref="IRivetOrganizationDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IRivetOrganizationDirectoryPathProvider> AddRivetOrganizationDirectoryPathProviderAction(this IServiceAction _, IServiceAction <IDropboxDirectoryPathProvider> dropboxDirectoryPathProviderAction, IServiceAction <IOrganizationStringlyTypedPathOperator> organizationStringlyTypedPathOperatorAction) { var serviceAction = _.New <IRivetOrganizationDirectoryPathProvider>(services => services.AddRivetOrganizationDirectoryPathProvider( dropboxDirectoryPathProviderAction, organizationStringlyTypedPathOperatorAction)); return(serviceAction); }
/// <summary> /// Adds the <see cref="LocalDropboxDirectoryPathProvider"/> implementation of <see cref="IDropboxDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IDropboxDirectoryPathProvider> AddLocalDropboxDirectoryPathProviderAction(this IServiceAction _, IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction, IServiceAction <IUserProfileDirectoryPathProvider> userProfileDirectoryPathProviderAction) { var serviceAction = _.New <IDropboxDirectoryPathProvider>(services => services.AddLocalDropboxDirectoryPathProvider( stringlyTypedPathOperatorAction, userProfileDirectoryPathProviderAction)); return(serviceAction); }
/// <summary> /// Adds the <see cref="ProcessSpecificOutputDirectoryPathProvider"/> implementation of <see cref="IProcessSpecificOutputDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IProcessSpecificOutputDirectoryPathProvider> AddProcessSpecificOutputDirectoryPathProviderAction(this IServiceAction _, IServiceAction <IProcessDirectoryNameProvider> processDirectoryNameProviderAction, IServiceAction <IRootOutputDirectoryPathProvider> rootOutputDirectoryPathProviderAction, IServiceAction <IStringlyTypedPathOperator> stringlyTypedPathOperatorAction) { var serviceAction = _.New <IProcessSpecificOutputDirectoryPathProvider>(services => services.AddProcessSpecificOutputDirectoryPathProvider( processDirectoryNameProviderAction, rootOutputDirectoryPathProviderAction, stringlyTypedPathOperatorAction)); 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); }
/// <summary> /// Adds the <see cref="StaticValuedRootOutputDirectoryPathProvider"/> implementation of <see cref="IRootOutputDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IRootOutputDirectoryPathProvider> AddStaticValuedRootOutputDirectoryPathProviderAction(this IServiceAction _) { var serviceAction = _.New <IRootOutputDirectoryPathProvider>(services => services.AddStaticValuedRootOutputDirectoryPathProvider()); return(serviceAction); }
/// <summary> /// Adds the <see cref="LocalUserProfileDirectoryPathProvider"/> implementation of <see cref="IUserProfileDirectoryPathProvider"/> as a <see cref="ServiceLifetime.Singleton"/>. /// </summary> public static IServiceAction <IUserProfileDirectoryPathProvider> AddLocalUserProfileDirectoryPathProviderAction(this IServiceAction _) { var serviceAction = _.New <IUserProfileDirectoryPathProvider>(services => services.AddLocalUserProfileDirectoryPathProvider()); return(serviceAction); }