Beispiel #1
0
 public AsyncAdapter(
     IAsyncTypeParser <TInput, TOutput> asyncParser,
     System.Action <AsyncFuncBuilder <TOutput> > configuration)
 {
     this.asyncParser   = asyncParser;
     this.configuration = configuration;
 }
 public AsyncResultFunc(
     IAsyncTypeParser <TInput, TOutput> asyncParser,
     IAsyncResultFunc <TOutput> asyncResultFunc)
 {
     this.asyncParser     = asyncParser;
     this.asyncResultFunc = asyncResultFunc;
 }
 public static AsyncFuncBuilder <TInput> WithAdapter <TInput, TOutput>(
     this AsyncFuncBuilder <TInput> asyncFuncBuilder,
     IAsyncTypeParser <TInput, TOutput> asyncTypeParser,
     System.Action <AsyncFuncBuilder <TOutput> > configuration)
 {
     asyncFuncBuilder.AddStrategy(
         new AsyncAdapter <TInput, TOutput>(asyncTypeParser, configuration));
     return(asyncFuncBuilder);
 }