Exemple #1
0
 /// <nodoc />
 public static Xldb.Proto.DirectoryArtifact ToDirectoryArtifact(this DirectoryArtifact artifact, PathTable pathTable, NameExpander nameExpander)
 {
     return(!artifact.IsValid ? null : new Xldb.Proto.DirectoryArtifact()
     {
         Path = artifact.Path.ToAbsolutePath(pathTable, nameExpander),
         PartialSealID = artifact.PartialSealId,
         IsSharedOpaque = artifact.IsSharedOpaque
     });
 }
Exemple #2
0
 /// <summary>
 /// Creates a union instance from a directory artifact.
 /// </summary>
 public static FileOrDirectoryArtifact Create(DirectoryArtifact directoryArtifact)
 {
     Contract.Requires(directoryArtifact.IsValid);
     return(new FileOrDirectoryArtifact(FileArtifact.Invalid, directoryArtifact));
 }
Exemple #3
0
 /// <nodoc />
 private FileOrDirectoryArtifact(FileArtifact fileArtifact, DirectoryArtifact directoryArtifact)
 {
     FileArtifact      = fileArtifact;
     DirectoryArtifact = directoryArtifact;
 }