Exemplo n.º 1
0
        public ActionInvokable(DataServiceOperationContext operationContext, ServiceAction serviceAction, object site, object[] parameters, IParameterMarshaller marshaller)
        {
            _serviceAction = serviceAction;
            ActionInfo info       = serviceAction.CustomState as ActionInfo;
            var        marshalled = marshaller.Marshall(operationContext, serviceAction, parameters);

            info.AssertAvailable(site, marshalled[0], true);
            _action = () => CaptureResult(info.ActionMethod.Invoke(site, marshalled));
        }
Exemplo n.º 2
0
 public ActionProvider(Object context, IParameterMarshaller marshaller)
 {
     _context      = context;
     _instanceType = context.GetType();
     _marshaller   = marshaller;
 }