コード例 #1
0
        // POST: Service/PluginServices/Namespaces
        public virtual NamespaceList Namespaces(string args, Guid workspaceId, Guid dataListId)
        {
            var result = new NamespaceList();

            try
            {
                var pluginSource = JsonConvert.DeserializeObject <PluginSource>(args);
                if (pluginSource != null)
                {
                    var broker = new PluginBroker();
                    return(broker.GetNamespaces(pluginSource));
                }
            }
            catch (Exception ex)
            {
                RaiseError(ex);
            }
            return(result);
        }
コード例 #2
0
        // POST: Service/PluginServices/Namespaces
        public virtual NamespaceList Namespaces(PluginSource args, Guid workspaceId, Guid dataListId)
        {
            var result = new NamespaceList();

            try
            {
                if (args != null)
                {
                    var broker = new PluginBroker();
                    return(broker.GetNamespaces(args));
                }
            }
            catch (BadImageFormatException e)
            {
                RaiseError(e);
                throw;
            }
            catch (Exception ex)
            {
                RaiseError(ex);
            }
            return(result);
        }