public void Enqueue(IAppOperation appOperation) { _queue.Enqueue(appOperation); }
public AppController(EsnafimContext context, IAppOperation appOperation) { _appOperation = appOperation; }
public AppController(UrunKovaniContext context, IAppOperation appOperation) { _appOperation = appOperation; }
public bool TryDequeue(out IAppOperation appOperation) => _queue.TryDequeue(out appOperation);
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))); }
private static string MessageFactory <TArg>(IAppOperation operation, TArg arg) { return(string.Format("Execute operation '{0}': Arg = '{1}'".With(operation.Name, arg))); }
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)); }
public static Guid Trace <TArg>(this ILogger logger, IAppOperation operation, TArg arg) { return(logger.Trace((a) => MessageFactory(operation, a), arg)); }
public static Guid Trace(this ILogger logger, IAppOperation operation) { return(logger.Trace("Execute operation '{0}'".With(operation.Name))); }