コード例 #1
0
        public static async Task <IEnumerable <string> > MakeRelativeToRUserDirectoryAsync(this IRSession session, IEnumerable <string> names, CancellationToken cancellationToken = default(CancellationToken))
        {
            var userDirectory = await session.GetRUserDirectoryAsync(cancellationToken);

            return(names.Select(n => n.MakeRRelativePath(userDirectory)));
        }
コード例 #2
0
        public static async Task <IEnumerable <string> > MakeRelativeToRUserDirectoryAsync(this IRSession session, IEnumerable <string> names)
        {
            var userDirectory = await session.GetRUserDirectoryAsync();

            return(names.Select(n => MakeRelativeToUserDirectory(n, userDirectory)));
        }
コード例 #3
0
        public static async Task <string> MakeRelativeToRUserDirectoryAsync(this IRSession session, string name, CancellationToken cancellationToken = default(CancellationToken))
        {
            var userDirectory = await session.GetRUserDirectoryAsync(cancellationToken);

            return(name.MakeRRelativePath(userDirectory));
        }
コード例 #4
0
        public static async Task <string> MakeRelativeToRUserDirectoryAsync(this IRSession session, string name)
        {
            var userDirectory = await session.GetRUserDirectoryAsync();

            return(MakeRelativeToUserDirectory(name, userDirectory));
        }