You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow inproc callers to disable termination signal handlers (microsoft#5958)
## Change
Allow an inproc caller to disable the termination signal handlers
(CTRL+C, window messages, package updates). This is achieved by simply
not creating any of those listeners when disabled. The rest of the
system operates as normal, just with nothing able to trigger a shutdown
signal. The caller is then responsible for cancelling any operations as
necessary.
// Gets or sets a value indicating whether the caller would prefer the module to stay loaded or not.
1700
-
// This affects how the DllCanUnloadNow function called by COM behaves. If set to false it will act as if
1701
-
// there are active objects at all times. If set to true it will allow the unload when there are no
1702
-
// active objects.
1703
-
// Defaults to true.
1699
+
/// Gets or sets a value indicating whether the caller would prefer the module to stay loaded or not.
1700
+
/// This affects how the DllCanUnloadNow function called by COM behaves. If set to false it will act as if
1701
+
/// there are active objects at all times. If set to true it will allow the unload when there are no
1702
+
/// active objects.
1703
+
/// Defaults to true.
1704
1704
Boolean CanUnloadPreference{ get; set; };
1705
+
1706
+
/// Gets or sets a value indicating whether the module should listen for termination signals (CTRL+C, window messages, package updates)
1707
+
/// and begin the process of cancelling active operations and preventing new ones.
1708
+
/// If set to false, the caller is responsible for handling these termination signals and cancelling active operations as necessary.
1709
+
/// Set this to the desired state before any PackageManager operations. Changing it after the first operation for the process may have undefined behavior.
0 commit comments