public DteProject(Project project) { DteObject = project; _openWrapEnabled = Lazy.Is(() => MSBuildProject.OpenWrapEnabled(project.FullName), true); _file = Lazy.Is(() => LocalFileSystem.Instance.GetFile(project.FullName)); }
public HttpPackage(IFileSystem fileSystem, IPackageRepository source, IHttpRepositoryNavigator httpNavigator, PackageItem package) { _fileSystem = fileSystem; _httpNavigator = httpNavigator; _package = package; _identifier = Lazy.Is(() => new PackageIdentifier(Name, Version)); Source = source; }
protected ZipPackage(IFile packageFile) { PackageFile = packageFile; _identifier = new LazyValue<PackageIdentifier>(() => new PackageIdentifier(Name, Version)); }
/// <summary> /// Creates a new instance of the <see cref="LoadDataEventArgs"/> class /// </summary> internal DataLoadedEventArgs(String uri, LazyValueCallback<byte[]> dataEval) { _uri = uri; _data = new LazyValue<byte[]>(dataEval); }
public ZipFilePackage(IFile packageFile) { PackageFile = packageFile; _identifier = new LazyValue<PackageIdentifier>(() => new PackageIdentifier(Name, SemanticVersion)); Source = new InMemoryRepository("Null repository.") { Packages = { this } }; }
private void Awake() { currentWeaponConfig = defaultWeapon; currentWeapon = new LazyValue <Weapon>(SetupDefaultWeapon); }
private void Awake() { experience = GetComponent <Experience>(); currentLevel = new LazyValue <int>(CalculateLevel); }