private RemotingPackage(RemotingPackageManifest manifest, string tempDirectory) { Assert.ArgumentNotNull(manifest, "manifest"); _configuration = UnicornConfigurationManager.Configurations.First(x => x.Name.Equals(manifest.ConfigurationName, StringComparison.Ordinal)); Manifest = manifest; TempDirectory = tempDirectory; }
public RemotingPackage(IConfiguration configuration) { Assert.ArgumentNotNull(configuration, "configuration"); _configuration = configuration; Manifest = new RemotingPackageManifest(); Manifest.ConfigurationName = _configuration.Name; TempDirectory = GenerateTempDirectory(); }