Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SourceLink.cs « Mono.Debugging.Client « Mono.Debugging - github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56cde159e3f2b596963ca523926d9bf5ac370556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.IO;

namespace Mono.Debugging.Client
{
	[Serializable]
	public class SourceLink
	{
		public string Uri { get; }

		public string RelativeFilePath { get; }

		public SourceLink (string uri, string relativeFilePath)
		{
			RelativeFilePath = relativeFilePath;
			Uri = uri;
		}

		public string GetDownloadLocation (string cachePath)
		{
			var uri = new Uri (Uri);
			return Path.Combine (cachePath, uri.Host + uri.PathAndQuery);
		}
	}
}