public static bool TryReset <T>(this IProcessorContext context, string key) { if (context == null) { throw new ArgumentNullException("context"); } var result = context.TryReset(typeof(T), key); return(result); }
public static void Reset(this IProcessorContext context, Type type, string key) { if (context == null) { throw new ArgumentNullException("context"); } if (!context.TryReset(type, key)) { throw new ArgumentOutOfRangeException("key", key, string.Format(Resources.KeyNotFoundForGivenType, key, type.FullName)); } }
public static bool TryReset(this IProcessorContext context, Type type, object value) { if (context == null) { throw new ArgumentNullException("context"); } if (value == null) { throw new ArgumentNullException("value"); } var result = context.TryReset(type, ProcessorContextKeys.Default); return(result); }
public static bool TryReset <T>(this IProcessorContext context) { return(context.TryReset <T>(ProcessorContextKeys.Default)); }