/// <summary> /// Creates an <see cref="IAction"/> using the specified context. /// </summary> /// <param name="context">The context.</param> /// <returns>The <see cref="IAction"/>.</returns> public IAction Create(ActionCreationContext context) { var method = context.MethodFactory .CreateFrom(context.Method); var action = new SynchronousAction( context.ServiceLocator, method, context.MessageBinder, context.CreateFilterManager(method), BlockInteraction ); context.ConventionManager .ApplyActionCreationConventions(action, method); return(action); }
/// <summary> /// Creates an <see cref="IAction"/> using the specified context. /// </summary> /// <param name="context">The context.</param> /// <returns>The <see cref="IAction"/>.</returns> public IAction Create(ActionCreationContext context) { var method = context.MethodFactory .CreateFrom(context.Method); var action = new SynchronousAction( context.ServiceLocator, method, context.MessageBinder, context.CreateFilterManager(method), BlockInteraction ); context.ConventionManager .ApplyActionCreationConventions(action, method); return action; }