/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System;
namespace dnSpy.Contracts.Debugger.Engine {
///
/// A class that can update a
///
public abstract class DbgEngineAppDomain {
///
/// Gets the app domain
///
public abstract DbgAppDomain AppDomain { get; }
///
/// Removes the app domain and disposes of it. The engine has paused the program.
///
/// Message flags
public abstract void Remove(DbgEngineMessageFlags messageFlags);
///
/// Properties to update
///
[Flags]
public enum UpdateOptions {
///
/// No option is enabled
///
None = 0,
///
/// Update
///
Name = 0x00000001,
///
/// Update
///
Id = 0x00000002,
}
///
/// Updates
///
/// New value
public void UpdateName(string? name) => Update(UpdateOptions.Name, name: name);
///
/// Updates
///
/// New value
public void UpdateId(int id) => Update(UpdateOptions.Id, id: id);
///
/// Updates properties
///
/// Options
/// New value
/// New value
public abstract void Update(UpdateOptions options, string? name = null, int id = 0);
}
}