Esempio n. 1
0
        public AppDomainBuilder(SOSDac sos, IAppDomainHelpers helpers)
        {
            _sos    = sos;
            Helpers = helpers;

            _sos.GetAppDomainStoreData(out _appDomainStore);
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        /// <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();
        }