Beispiel #1
0
        /// <summary>
        /// Get the path of the directory containing the executable file.
        /// </summary>
        public static string GetExecutableFileDirectoryPath(this IExecutableFilePathProvider executableFilePathProvider, IStringlyTypedPathOperator stringlyTypedPathOperator)
        {
            var executableFilePath = executableFilePathProvider.GetExecutableFilePath();

            var executableFileDirectoryPath = stringlyTypedPathOperator.GetDirectoryPathForFilePath(executableFilePath);

            return(executableFileDirectoryPath);
        }
Beispiel #2
0
 public ExecutableFileDirectoryPathProvider(IExecutableFilePathProvider executableFilePathProvider, IStringlyTypedPathOperator stringlyTypedPathOperator)
 {
     this.ExecutableFilePathProvider = executableFilePathProvider;
     this.StringlyTypedPathOperator  = stringlyTypedPathOperator;
 }