Exemple #1
0
        public string isSharingComboValid(string batchRunUserId, IProtocol[] selectedProtocols,
                                          int[] selectedProtocolIDs, int[] sampleIDs, double[] sampleVolumes,
                                          bool isSharing, int[] sharedSectorsTranslation, int[] sharedSectorsProtocolIndex)
        {
            string result = "";

            try
            {
                if (IsConnectionEnabled)
                {
                    // Prepare samples info
                    XmlRpcSample[] samples = PrepareSampleInformation(selectedProtocols,
                                                                      selectedProtocolIDs, sampleIDs, sampleVolumes, null);

                    result = myXmlRpcProxy.isSharingComboValid(samples, batchRunUserId,
                                                               isSharing, sharedSectorsTranslation, sharedSectorsProtocolIndex);
                }
            }
            catch (Exception ex)
            {
                // Log the details of the exception
                LogException(ex, "isSharingComboValid");
            }
            return(result);
        }