26 lines
465 B
C#
26 lines
465 B
C#
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);
|
|
}
|
|
}
|
|
}
|