11using System ;
22using System . Collections . Generic ;
33
4- namespace ServiceStack . Redis
4+ namespace ServiceStack . Redis . Pipeline
55{
6- /// <summary>
7- /// interface to operation that can queue commands
8- /// </summary>
9- public interface IRedisQueueableOperation
10- {
11- void QueueCommand ( Action < IRedisClient > command ) ;
12- void QueueCommand ( Action < IRedisClient > command , Action onSuccessCallback ) ;
13- void QueueCommand ( Action < IRedisClient > command , Action onSuccessCallback , Action < Exception > onErrorCallback ) ;
14-
15- void QueueCommand ( Func < IRedisClient , int > command ) ;
16- void QueueCommand ( Func < IRedisClient , int > command , Action < int > onSuccessCallback ) ;
17- void QueueCommand ( Func < IRedisClient , int > command , Action < int > onSuccessCallback , Action < Exception > onErrorCallback ) ;
18-
19- void QueueCommand ( Func < IRedisClient , long > command ) ;
20- void QueueCommand ( Func < IRedisClient , long > command , Action < long > onSuccessCallback ) ;
21- void QueueCommand ( Func < IRedisClient , long > command , Action < long > onSuccessCallback , Action < Exception > onErrorCallback ) ;
22-
23- void QueueCommand ( Func < IRedisClient , bool > command ) ;
24- void QueueCommand ( Func < IRedisClient , bool > command , Action < bool > onSuccessCallback ) ;
25- void QueueCommand ( Func < IRedisClient , bool > command , Action < bool > onSuccessCallback , Action < Exception > onErrorCallback ) ;
26-
27- void QueueCommand ( Func < IRedisClient , double > command ) ;
28- void QueueCommand ( Func < IRedisClient , double > command , Action < double > onSuccessCallback ) ;
29- void QueueCommand ( Func < IRedisClient , double > command , Action < double > onSuccessCallback , Action < Exception > onErrorCallback ) ;
30-
31- void QueueCommand ( Func < IRedisClient , byte [ ] > command ) ;
32- void QueueCommand ( Func < IRedisClient , byte [ ] > command , Action < byte [ ] > onSuccessCallback ) ;
33- void QueueCommand ( Func < IRedisClient , byte [ ] > command , Action < byte [ ] > onSuccessCallback , Action < Exception > onErrorCallback ) ;
34-
35- void QueueCommand ( Func < IRedisClient , string > command ) ;
36- void QueueCommand ( Func < IRedisClient , string > command , Action < string > onSuccessCallback ) ;
37- void QueueCommand ( Func < IRedisClient , string > command , Action < string > onSuccessCallback , Action < Exception > onErrorCallback ) ;
38-
39- void QueueCommand ( Func < IRedisClient , List < string > > command ) ;
40- void QueueCommand ( Func < IRedisClient , List < string > > command , Action < List < string > > onSuccessCallback ) ;
41- void QueueCommand ( Func < IRedisClient , List < string > > command , Action < List < string > > onSuccessCallback , Action < Exception > onErrorCallback ) ;
6+ /// <summary>
7+ /// interface to operation that can queue commands
8+ /// </summary>
9+ public interface IRedisQueueableOperation
10+ {
11+ void QueueCommand ( Action < IRedisClient > command ) ;
12+ void QueueCommand ( Action < IRedisClient > command , Action onSuccessCallback ) ;
13+ void QueueCommand ( Action < IRedisClient > command , Action onSuccessCallback , Action < Exception > onErrorCallback ) ;
14+
15+ void QueueCommand ( Func < IRedisClient , int > command ) ;
16+ void QueueCommand ( Func < IRedisClient , int > command , Action < int > onSuccessCallback ) ;
17+ void QueueCommand ( Func < IRedisClient , int > command , Action < int > onSuccessCallback , Action < Exception > onErrorCallback ) ;
18+
19+ void QueueCommand ( Func < IRedisClient , long > command ) ;
20+ void QueueCommand ( Func < IRedisClient , long > command , Action < long > onSuccessCallback ) ;
21+ void QueueCommand ( Func < IRedisClient , long > command , Action < long > onSuccessCallback , Action < Exception > onErrorCallback ) ;
22+
23+ void QueueCommand ( Func < IRedisClient , bool > command ) ;
24+ void QueueCommand ( Func < IRedisClient , bool > command , Action < bool > onSuccessCallback ) ;
25+ void QueueCommand ( Func < IRedisClient , bool > command , Action < bool > onSuccessCallback , Action < Exception > onErrorCallback ) ;
26+
27+ void QueueCommand ( Func < IRedisClient , double > command ) ;
28+ void QueueCommand ( Func < IRedisClient , double > command , Action < double > onSuccessCallback ) ;
29+ void QueueCommand ( Func < IRedisClient , double > command , Action < double > onSuccessCallback , Action < Exception > onErrorCallback ) ;
30+
31+ void QueueCommand ( Func < IRedisClient , byte [ ] > command ) ;
32+ void QueueCommand ( Func < IRedisClient , byte [ ] > command , Action < byte [ ] > onSuccessCallback ) ;
33+ void QueueCommand ( Func < IRedisClient , byte [ ] > command , Action < byte [ ] > onSuccessCallback , Action < Exception > onErrorCallback ) ;
34+
35+ void QueueCommand ( Func < IRedisClient , string > command ) ;
36+ void QueueCommand ( Func < IRedisClient , string > command , Action < string > onSuccessCallback ) ;
37+ void QueueCommand ( Func < IRedisClient , string > command , Action < string > onSuccessCallback , Action < Exception > onErrorCallback ) ;
38+
39+ void QueueCommand ( Func < IRedisClient , List < string > > command ) ;
40+ void QueueCommand ( Func < IRedisClient , List < string > > command , Action < List < string > > onSuccessCallback ) ;
41+ void QueueCommand ( Func < IRedisClient , List < string > > command , Action < List < string > > onSuccessCallback , Action < Exception > onErrorCallback ) ;
4242
43- }
44- }
43+ }
44+ }
0 commit comments