Dev2.Runtime.ESB.WF.WfApplicationUtils.FindServiceShape C# (CSharp) 메소드

FindServiceShape() 개인적인 메소드

Finds the service shape.
private FindServiceShape ( System.Guid workspaceId, System.Guid resourceId ) : string
workspaceId System.Guid The workspace ID.
resourceId System.Guid The ID of the resource
리턴 string
        string FindServiceShape(Guid workspaceId, Guid resourceId)
        {
            const string EmptyDataList = "<DataList></DataList>";
            var resource = ResourceCatalog.Instance.GetResource(workspaceId, resourceId);

            if(resource == null)
            {
                return EmptyDataList;
            }

            var serviceShape = resource.DataList.Replace(GlobalConstants.SerializableResourceQuote,"\"").ToString();
            serviceShape = serviceShape.Replace(GlobalConstants.SerializableResourceSingleQuote,"\'");
            return string.IsNullOrEmpty(serviceShape) ? EmptyDataList : serviceShape;
        }
    }