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
/// This method is an ABI proxy and installer for the Speed Throttler Service functionality. To use Speed Throttler Service functionalities, Use <see cref="SpeedLimiterService"/> instead.
InstanceLogger.LogTrace("[RegisterSpeedThrottlerService] Speed Throttler Service has been installed. Service's callback is located at address: 0x{Ptr:x8}",addBytesOrWaitAsyncCallback);
81
+
}
82
+
}
83
+
catch(Exceptionex)
74
84
{
75
-
InstanceLogger.LogTrace("[RegisterSpeedThrottlerService] Speed Throttler Service has been installed. Service's callback is located at address: 0x{Ptr:x8}",addBytesOrWaitAsyncCallback);
85
+
SpeedLimiterService.AddBytesOrWaitAsyncCallback=null;// Reset the callback
86
+
returnMarshal.GetHRForException(ex);
87
+
}
88
+
finally
89
+
{
90
+
SpeedLimiterService.FreeServiceContext(contextP);
76
91
}
77
92
}
78
-
catch(Exceptionex)
79
-
{
80
-
SpeedLimiterService.AddBytesOrWaitAsyncCallback=null;// Reset the callback
81
-
returnMarshal.GetHRForException(ex);
82
-
}
83
-
finally
84
-
{
85
-
SpeedLimiterService.FreeServiceContext(contextP);
86
-
}
93
+
94
+
InstanceLogger.LogError("[RegisterSpeedThrottlerService] Failed to install/uninstall Speed Throttler Service. You must provide both arguments either all null or not-null!");
0 commit comments