private async Task ReportCamera(IPAddress ip, int port)
 {
     using (var sender = new CommandSender())
     {
         var reporting = new ReportingCommand(_listener.LocalHost, _listener.Port, _camera.GetSupportedResolutions());
         await sender.IssueCommand(reporting, ip, port);
     }
 }
 private async Task ReportCamera(IPAddress ip, int port)
 {
     using (var sender = new CommandSender())
     {
         var reporting = new ReportingCommand(_listener.LocalHost, _listener.Port, _camera.GetSupportedResolutions());
         await sender.IssueCommand(reporting, ip, port);
     }
 }
Exemplo n.º 3
0
        public override string GetQuery()
        {
            var factory = new ReportingParserFactory();
            var parser  = factory.Instantiate(Source);

            var request = new SharedDatasetRequest
                          (
                Source,
                string.IsNullOrEmpty(Source) ? Settings.BasePath + Path : Path,
                Name
                          );

            command = parser.ExtractCommand(request);

            return(command.Text);
        }
Exemplo n.º 4
0
        public override string GetQuery()
        {
            var factory = new ReportingParserFactory();
            var parser  = factory.Instantiate(Source);

            var request = new ReportDataSetRequest
                          (
                Source ?? Settings.BasePath,
                Path,
                Name,
                Dataset
                          );

            command = parser.ExtractCommand(request);

            return(command.Text);
        }