/// <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;
     }
 }
コード例 #2
0
 /// <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;
     }
 }