/// <summary> /// Assigns the <paramref name="provider"/> to the MethodReplacementProvider registry. /// </summary> /// <returns>A <see cref="IMethodReplacementProvider"/> that will determine the code that will be executed once a target method is called.</returns> public static void SetProvider(IMethodReplacementProvider provider) { lock (_lock) { _provider = provider; } }
/// <summary> /// Assigns the <paramref name="provider" /> to the MethodReplacementProvider registry. /// </summary> /// <returns> /// A <see cref="IMethodReplacementProvider" /> that will determine the code that will be executed once a target /// method is called. /// </returns> public static void SetProvider(IMethodReplacementProvider provider) { lock (_lock) { _provider = provider; } }