public void On<TResult, TParameter>(string operationName, Func<TParameter, TResult> operation) { FrameworkHelper.AddOperationHandler(operationName, (Object parameter) => { return (Object) operation((TParameter) parameter); }); }
/// <summary> /// Executes this operation. /// </summary> /// <param name="parameter">The parameter.</param> /// <returns></returns> public IPromisse <TResult> Execute(TParameter parameter) { return(FrameworkHelper.Schedule <TResult>(new MetaOperation { Parameter = parameter, OperationName = _operationName })); }