public static void Main(string[] args)
        {
            //Start Reading Device To Azure Cloud Messages
            Task.Run(() =>
            {
                ReadDeviceToAzureMessages rm = new ReadDeviceToAzureMessages(AzureDevices, TemperatureValues, HumidityValues);
            }
                     );

            //Connect To IBM Client And Subscribe To Report Event
            Task.Run(() =>
            {
                IBMMessages ibmcl = new IBMMessages();
            }
                     );

            //Start Rest API Module
            NancyServer ns = new NancyServer();
        }
示例#2
0
 public ClientModule(IService service)
 {
     var schema = NancyServer.RegisterRoutesFor(this, service);
 }
示例#3
0
 public StudentServiceModule(IStudentService service)
 {
     NancyServer.RegisterRoutesFor(this, service);
 }