示例#1
0
 public void Enqueue(IAppOperation appOperation)
 {
     _queue.Enqueue(appOperation);
 }
示例#2
0
 public AppController(EsnafimContext context, IAppOperation appOperation)
 {
     _appOperation = appOperation;
 }
 public AppController(UrunKovaniContext context, IAppOperation appOperation)
 {
     _appOperation = appOperation;
 }
示例#4
0
 public bool TryDequeue(out IAppOperation appOperation) => _queue.TryDequeue(out appOperation);
示例#5
0
 private static string MessageFactory <TArg1, TArg2>(IAppOperation operation, TArg1 arg1, TArg2 arg2)
 {
     return(string.Format("Execute operation '{0}': Arg1 = '{1}', Arg2 = '{2}'".With(operation.Name, arg1, arg2)));
 }
示例#6
0
 private static string MessageFactory <TArg>(IAppOperation operation, TArg arg)
 {
     return(string.Format("Execute operation '{0}': Arg = '{1}'".With(operation.Name, arg)));
 }
示例#7
0
 public static Guid Trace <TArg1, TArg2>(this ILogger logger, IAppOperation operation, TArg1 arg1, TArg2 arg2)
 {
     return(logger.Trace((a1, a2) => MessageFactory(operation, a1, a2), arg1, arg2));
 }
示例#8
0
 public static Guid Trace <TArg>(this ILogger logger, IAppOperation operation, TArg arg)
 {
     return(logger.Trace((a) => MessageFactory(operation, a), arg));
 }
示例#9
0
 public static Guid Trace(this ILogger logger, IAppOperation operation)
 {
     return(logger.Trace("Execute operation '{0}'".With(operation.Name)));
 }