public ClrmdAppDomain(ClrRuntime runtime, IAppDomainData data) { if (data is null) { throw new ArgumentNullException(nameof(data)); } _helpers = data.Helpers; Runtime = runtime; Id = data.Id; Address = data.Address; Name = data.Name; Runtime = runtime; Modules = _helpers.EnumerateModules(this).ToImmutableArray(); }
/// <summary> /// Create an "empty" ClrAppDomain when we cannot request app domain details. /// </summary> /// <param name="runtime">The containing runtime.</param> /// <param name="helpers">Helpers for querying data</param> /// <param name="address">The address of the AppDomain</param> public ClrmdAppDomain(ClrRuntime runtime, IAppDomainHelpers helpers, ulong address) { if (runtime is null) { throw new ArgumentNullException(nameof(runtime)); } if (helpers is null) { throw new ArgumentNullException(nameof(helpers)); } Runtime = runtime; _helpers = helpers; Address = address; Id = -1; Modules = _helpers.EnumerateModules(this).ToImmutableArray(); }