Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Rename of extensionmethod enumerable Try action for each, to TryAll
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwertheim committed Jun 25, 2012
1 parent 094b051 commit 09d168c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Projects/SisoDb/Caching/CacheProviderBase.cs
Expand Up @@ -30,7 +30,7 @@ protected CacheProviderBase()

public virtual void Clear()
{
var ex = CacheEntries.Values.Try(e => e.Clear(), ExceptionMessages.CacheProvider_Clear_failed);
var ex = CacheEntries.Values.TryAll(e => e.Clear(), ExceptionMessages.CacheProvider_Clear_failed);
if (ex != null)
throw ex;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Projects/SisoDb/Core/EnumerableExtensions.cs
Expand Up @@ -28,7 +28,7 @@ public static class EnumerableExtensions
yield return i;
}
}
public static SisoDbException Try<T>(this IEnumerable<T> source, Action<T> action, string errorMessage) where T : class
public static SisoDbException TryAll<T>(this IEnumerable<T> source, Action<T> action, string errorMessage) where T : class
{
var exceptions = new List<Exception>();
foreach (var element in source)
Expand Down

0 comments on commit 09d168c

Please sign in to comment.