The following code will allow you to make sure the AIF service is running in our server. In addition, you can use this code to run the AIF service at any moment instead of using a batch process.

static void TEST_AIF(Args _args)
{
    AifGatewayReceiveService agrs = new AifGatewayReceiveService();
    AifInboundProcessingService aip = new AifInboundProcessingService();


    AifGatewaySendService agss = new AifGatewaySendService();
    AifOutboundProcessingService aop = new AifOutboundProcessingService();
    ;


That's all folks!
  }