Class CustomTreeService
Inheritance
System.Object
CustomTreeService
Implements
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class CustomTreeService : Object, ICustomTreeService
Constructors
CustomTreeService(IApiService)
Declaration
public CustomTreeService(IApiService apiService)
Parameters
Type | Name | Description |
---|---|---|
IApiService | apiService |
Methods
GetEnrollerTree()
Gets the Enrollment tree.
Declaration
public Task<CustomTree> GetEnrollerTree()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CustomTree> |
Exceptions
Type | Condition |
---|---|
System.Exception | Not found. |
GetSponsorTree()
Gets the IsSponsorTree tree.
Declaration
public Task<CustomTree> GetSponsorTree()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CustomTree> |
Exceptions
Type | Condition |
---|---|
System.Exception | Not found. |
GetTree(String)
Gets the specified tree named treeName
.
Declaration
public Task<CustomTree> GetTree(string treeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | treeName |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CustomTree> |
Exceptions
Type | Condition |
---|---|
System.Exception | Not found. |
GetTrees()
Get all the trees configured.
Declaration
public Task<CustomTree[]> GetTrees()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CustomTree[]> |
Exceptions
Type | Condition |
---|---|
System.Exception | No trees configured. |