Exemple #1
0
        ProcessId(string path, SystemName system)
        {
            if (path == null)
            {
                throw new ArgumentNullException(nameof(path));
            }
            var res = TryParse(path).IfLeft(ex => raise <ProcessId>(ex));

            value = new ProcessIdInternal(res.value.Parts, res.value.Name, res.System, res.value.Path);
        }
Exemple #2
0
 ProcessId(ProcessIdInternal value)
 {
     this.value = value;
 }
Exemple #3
0
 ProcessId(ProcessName[] parts, SystemName system, ProcessName name, string path)
 {
     value = new ProcessIdInternal(parts, name, system, path);
 }