Dev2.Runtime.ServiceModel.PluginSources.Get C# (CSharp) Method

Get() public method

public Get ( string resourceId, System.Guid workspaceId, System.Guid dataListId ) : PluginSource
resourceId string
workspaceId System.Guid
dataListId System.Guid
return Dev2.Runtime.ServiceModel.Data.PluginSource
        public PluginSource Get(string resourceId, Guid workspaceId, Guid dataListId)
        {
            var result = new PluginSource { ResourceID = Guid.Empty, ResourceType = ResourceType.PluginSource };
            try
            {
                var xmlStr = Resources.ReadXml(workspaceId, ResourceType.PluginSource, resourceId);
                if(!string.IsNullOrEmpty(xmlStr))
                {
                    var xml = XElement.Parse(xmlStr);
                    result = new PluginSource(xml);
                }
            }
            catch(Exception ex)
            {
                RaiseError(ex);
            }
            return result;
        }