コード例 #1
0
        private bool CheckWfs(string uuid, DatasetDelivery datasetDelivery)
        {
            if (datasetDelivery != null)
            {
                bool hasWfs  = datasetDelivery.IsGoodOrUseable();
                bool hasWcs  = false;
                var  distros = GetDistributions(uuid);
                if (distros != null)
                {
                    foreach (var distro in distros)
                    {
                        string protocol = distro?.Protocol;
                        if (!string.IsNullOrEmpty(protocol) && protocol.Contains("WCS"))
                        {
                            hasWcs = true;
                        }
                    }

                    if (hasWfs || hasWcs)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }
コード例 #2
0
        public Guid CreateDatasetDelivery(string deliveryStatusId, string note, bool autoupdate = true)
        {
            var datasetDelivery = new DatasetDelivery(deliveryStatusId, note, autoupdate);

            _dbContext.DatasetDeliveries.Add(datasetDelivery);
            _dbContext.SaveChanges();
            return(datasetDelivery.DatasetDeliveryId);
        }
コード例 #3
0
        public DatasetDelivery CreateDatasetDelivery(string deliveryStatusId, string note, bool autoupdate = true)
        {
            var datasetDelivery = new DatasetDelivery(deliveryStatusId, note, autoupdate);

            return(datasetDelivery);
        }