strICT.InFlow.WFM.Utilities.InFlowWFM.listScopes C# (CSharp) Method

listScopes() private method

List child-scopes of a given scope
private listScopes ( string scope ) : List
scope string scope
return List
        private List<string> listScopes(string scope)
        {
            List<string> scopes = new List<string>();

            WorkflowManagementClient client = new WorkflowManagementClient(new Uri(cfgWFMBaseAddress + scope), credentials);
            foreach (var i in client.CurrentScope.GetChildScopes())
            {
                scopes.Add(i.Path.TrimStart('/'));
            }
            return scopes;
        }