コード例 #1
0
 static NServiceRequestExec()
 {
     try
     {
         NServiceExec <TService> .CreateServiceRunnersFor <TRequest>();
     }
     catch (Exception ex)
     {
         ex.Message.Print();
         throw;
     }
 }
コード例 #2
0
 /// <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));
 }