|
Nebula
|
Migrates a live object graph between two versions of a plugin assembly.
Classes | |
| class | ReferenceComparer |
| class | ManagedCallback |
| class | PropertyReplacement |
Package Functions | |
| HotReloadState (Assembly oldAssembly, Assembly newAssembly) | |
| void | RegisterReplacement (object oldValue, object newValue) |
| void | Migrate (object oldPlugin, object newPlugin, object oldApplication, object newApplication) |
| void | Complete () |
| void | PrepareProperties () |
Properties | |
| IReadOnlyList< PropertyReplacement > | Properties [get] |
Private Member Functions | |
| bool | TryMigrateCollectionValue (object oldValue, Type newType, out object result) |
| object | MigrateArray (Array oldArray, Type newType) |
| void | PopulateArray (Array source, Array destination, Type elementType, int[] lengths, int[] lowerBounds, int[] indices) |
| object | MigrateList (IList oldList, Type newType) |
| void | QueueListContents (IList source, IList destination) |
| object | MigrateDictionary (IDictionary oldDictionary, Type newType) |
| void | QueueDictionaryContents (IDictionary source, IDictionary destination) |
| bool | TryMigrateGenericDictionary (object oldValue, Type newType, out object result) |
| bool | TryMigrateEnumerableCollection (object oldValue, Type newType, out object result) |
| object | MigrateComparer (object collection) |
| bool | MigrateIntoReadonlyContainer (object source, object destination) |
| object | ConstructCollection (Type type, object comparer) |
| void | DrainWork () |
| void | NotifyFailure () |
| object | MigrateValue (object oldValue, Type destinationType) |
| object | MigrateResetValue (object oldValue, Type newType) |
| object | MigrateObject (object oldValue, Type oldType, Type newType) |
| void | QueueObjectFields (object oldValue, object newValue) |
| void | RecordCallback (object oldValue, object newValue) |
| void | CopyObjectFields (object oldValue, object newValue) |
| void | CopyDeclaredFields (object oldValue, object newValue, Type oldLevel, Type newLevel) |
| void | PrepareProperty (Nebula.Game.Entity entity, Nebula.Game.Property oldProperty) |
| bool | TryMigrateReflectionValue (object oldValue, Type newType, out object result) |
| object | MigrateModule (Module module) |
| object | MigrateDelegate (Delegate oldDelegate, Type newType) |
| object | MigrateMember (MemberInfo member) |
| object | MigrateParameter (ParameterInfo parameter) |
| MethodInfo | FindMethod (Type declaringType, MethodInfo oldMethod) |
| bool | ParametersMatch (ParameterInfo[] oldParameters, ParameterInfo[] newParameters) |
| bool | AreEquivalentTypes (Type oldType, Type newType) |
| ConstructorInfo | FindConstructor (Type declaringType, ConstructorInfo oldConstructor) |
| Type | GetNewType (Type oldType) |
| object | Construct (Type type) |
| bool | IsSwappedAssembly (Assembly assembly) |
| Assembly | GetNewAssembly (Assembly assembly) |
| bool | TryMigrateRuntimeValue (object oldValue, Type newType, out object result) |
| object | MigrateWeakReference (WeakReference oldReference) |
| object | MigrateGenericWeakReference (object oldReference, Type newType) |
| object | MigrateTask (Task oldTask, Type newType) |
| void | MigrateStaticFields () |
| void | MigrateStaticFields (Type oldType, Type newType) |
Static Private Member Functions | |
| static object | GetComparer (object collection) |
| static Type[] | GetCollectionArguments (Type type, Type contract) |
| static MethodInfo | FindCollectionMethod (Type type, string name) |
| static Type | FindGenericInterface (Type type, Type genericDefinition) |
| static bool | IsSetType (Type type) |
| static void | ValidateDestinationType (Type newType, Type destinationType) |
| static object | MigrateEnum (object oldValue, Type oldType, Type newType) |
| static bool | ShouldSkip (FieldInfo field) |
| static bool | BackingPropertyHasNoHotReload (FieldInfo field) |
| static void | RequireExported (Type type) |
| static bool | IsExportedOrGenerated (Type type) |
| static bool | IsStaticExportType (Type type) |
| static bool | IsImmutable (Type type) |
| static object | ConstructWithFactory (Type type, HotReloadFactoryAttribute attribute) |
| static bool | IsGenericType (Type type, Type definition) |
Private Attributes | |
| readonly Assembly | oldAssembly |
| readonly Assembly | newAssembly |
| readonly AssemblyLoadContext | oldLoadContext |
| readonly AssemblyLoadContext | newLoadContext |
| readonly Dictionary< object, object > | replacements = new Dictionary<object, object>(ReferenceComparer.Instance) |
| readonly Queue< Action > | work = new Queue<Action>() |
| readonly Queue< Action > | lateWork = new Queue<Action>() |
| readonly List< ManagedCallback > | callbacks = [] |
| readonly HashSet< object > | queuedObjects = new HashSet<object>(ReferenceComparer.Instance) |
| readonly HashSet< object > | persistedObjects = new HashSet<object>(ReferenceComparer.Instance) |
| readonly List< PropertyReplacement > | properties = [] |
|
inlinepackage |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinepackage |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlinepackage |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinepackage |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinepackage |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getpackage |