Permalink
Browse files

Create NewFactoryFn for RedisClient.

Create multiple blocking queues test
  • Loading branch information...
1 parent 428d177 commit eb7cfcbcb4885cf7c111ebfae74bb3e176921774 @mythz mythz committed Jul 14, 2012
View
Binary file not shown.
Binary file not shown.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.
@@ -38,6 +38,16 @@ public RedisClient()
Init();
}
+ public static Func<RedisClient> NewFactoryFn = () => new RedisClient();
+
+ /// <summary>
+ /// Creates a new instance of the Redis Client from NewFactoryFn.
+ /// </summary>
+ public static RedisClient New()
+ {
+ return NewFactoryFn();
+ }
+
public RedisClient(string host)
: base(host)
{
Oops, something went wrong.

0 comments on commit eb7cfcb

Please sign in to comment.