static NServiceRequestExec() { try { NServiceExec <TService> .CreateServiceRunnersFor <TRequest>(); } catch (Exception ex) { ex.Message.Print(); throw; } }
/// <summary>Executes.</summary> /// /// <param name="requestContext">Context for the request.</param> /// <param name="instance"> The instance.</param> /// <param name="request"> The request.</param> /// /// <returns>An object.</returns> public object Execute(IRequestContext requestContext, object instance, object request) { return(NServiceExec <TService> .Execute(requestContext, instance, request, typeof(TRequest).Name)); }