Пример #1
0
        public IEnumerable<String> Execute(CollectServerParameters server)
        {
            var api = new ModSicConnection(server.Address, server.Username, server.Password, server.ClientId);
            var collectionsInExecution = api.GetCollectionsInExecution();

            return collectionsInExecution.Select(collectInfo => collectInfo.CollectRequestId);
        }
Пример #2
0
 public ModSicService(CollectServerParameters modSicServerParameters)
 {
     CreateStatusCharArray();
     this._modSicConnection =
         new ModSicConnection(
             modSicServerParameters.Address,
             modSicServerParameters.Username,
             modSicServerParameters.Password,
             modSicServerParameters.ClientId);
 }
Пример #3
0
        private void ProcessParameters()
        {
            definitionsFilename = String.IsNullOrEmpty(options.OvalDefinitionFilename) ? defaultDefinitionsFilename : options.OvalDefinitionFilename;
            externalVariableFilename = String.IsNullOrEmpty(options.ExternalVariableFilename) ? defaultExternalVariableFilename : options.ExternalVariableFilename;
            ovalSchemaPath = String.IsNullOrEmpty(options.OvalSchemaPath) ? defaultOvalSchemaPath : options.OvalSchemaPath;
            systemCharacteristicsFilename = String.IsNullOrEmpty(options.SystemCharacteristicsFilename) ? defaultSystemCharacteristicsFilename : options.SystemCharacteristicsFilename;
            resultsFilename = String.IsNullOrEmpty(options.ResultsFilename) ? defaultResultsFilename : options.ResultsFilename;

            server = new CollectServerParameters();
            server.Address = String.Format("http://{0}/CollectService", options.ServerAddress);
            server.Username = options.ServerUsername;
            server.Password = options.ServerPassword;

            var attrib = (GuidAttribute) Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(GuidAttribute), true)[0];
            server.ClientId = System.Environment.MachineName + "\\" + attrib.Value;
        }
Пример #4
0
 public bool Execute(string requestId, CollectServerParameters server)
 {
     return 
         new ModSicConnection(server.Address, server.Username, server.Password, server.ClientId)
             .CancelCollect(requestId);
 }