ResourceManagementClient Class |
Namespace: Lithnet.ResourceManagement.Client
The ResourceManagementClient type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | ResourceManagementClient() |
Initializes a new instance of the ResourceManagementClient class
|
![]() ![]() | ResourceManagementClient(NetworkCredential) |
Initializes a new instance of the ResourceManagementClient class
|
![]() | ResourceManagementClient(String) |
Initializes a new instance of the ResourceManagementClient class
|
![]() | ResourceManagementClient(String, NetworkCredential) |
Initializes a new instance of the ResourceManagementClient class
|
![]() | ResourceManagementClient(Uri, NetworkCredential, String, Boolean) |
Initializes a new instance of the ResourceManagementClient class
|
Name | Description | |
---|---|---|
![]() | Approve |
Approves or rejects a pending request
|
![]() ![]() | CreateResource |
Creates a template of a new object that can be used to save to the resource management service at a later stage
|
![]() ![]() | CreateResourceTemplateForUpdate |
Creates a template of an existing object that can be used to save to the resource management service at a later stage.
As this is an empty template, there is no. validation performed on value changes. It is recommended to use
and perform the update against the real object
|
![]() ![]() | DeleteResource(UniqueIdentifier) |
Deletes the specified resource from the resource management service
|
![]() ![]() | DeleteResource(Guid) |
Deletes the specified resource from the resource management service
|
![]() ![]() | DeleteResource(String) |
Deletes the specified resource from the resource management service
|
![]() ![]() | DeleteResource(ResourceObject) |
Deletes the specified resource from the resource management service
|
![]() ![]() | DeleteResources(IEnumerable<UniqueIdentifier>) |
Deletes the specified resources from the resource management service as a single composite operation
|
![]() ![]() | DeleteResources(IEnumerable<Guid>) |
Deletes the specified resources from the resource management service as a single composite operation
|
![]() ![]() | DeleteResources(IEnumerable<String>) |
Deletes the specified resources from the resource management service as a single composite operation
|
![]() ![]() | DeleteResources(IEnumerable<ResourceObject>) |
Deletes the specified resources from the resource management service as a single composite operation
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetApprovals(ApprovalStatus) |
Returns approval requests of the specified type for the currently connected user
|
![]() | GetApprovals(ApprovalStatus, UniqueIdentifier) |
Returns approval requests of the specified type for the specified user
|
![]() | GetHashCode | (Inherited from Object.) |
![]() ![]() | GetResource(UniqueIdentifier) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(Guid) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(String) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(UniqueIdentifier, Boolean) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(UniqueIdentifier, IEnumerable<String>) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(UniqueIdentifier, CultureInfo) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(Guid, IEnumerable<String>) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(Guid, CultureInfo) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(String, Boolean) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(String, IEnumerable<String>) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(String, CultureInfo) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(UniqueIdentifier, IEnumerable<String>, Boolean) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() ![]() | GetResource(UniqueIdentifier, IEnumerable<String>, CultureInfo) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(UniqueIdentifier, CultureInfo, Boolean) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() | GetResource(Guid, IEnumerable<String>, CultureInfo) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() ![]() | GetResource(String, IEnumerable<String>, Boolean) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(String, IEnumerable<String>, CultureInfo) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(String, CultureInfo, Boolean) |
Gets a resource from the resource management service, retrieving all attributes for the resource
|
![]() ![]() | GetResource(UniqueIdentifier, IEnumerable<String>, CultureInfo, Boolean) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() | GetResource(String, IEnumerable<String>, CultureInfo, Boolean) |
Gets a resource from the resource management service, retrieving only a specified set of attributes for the resource
|
![]() ![]() | GetResourceByKey(String, Dictionary<String, Object>) |
Gets a resource from the resource management service using a set of unique attribute and value combinations, retrieving all attributes for the resource
|
![]() ![]() | GetResourceByKey(String, Dictionary<String, Object>, IEnumerable<String>) |
Gets a resource from the resource management service using a set of unique attribute and value combinations, retrieving the specified attributes for the resource
|
![]() ![]() | GetResourceByKey(String, String, Object) |
Gets a resource from the resource management service using a unique attribute and value combination, retrieving all attributes for the resource
|
![]() ![]() | GetResourceByKey(String, Dictionary<String, Object>, IEnumerable<String>, CultureInfo) |
Gets a resource from the resource management service using a set of unique attribute and value combinations, retrieving the specified attributes for the resource
|
![]() ![]() | GetResourceByKey(String, String, Object, IEnumerable<String>) |
Gets a resource from the resource management service using a unique attribute and value combination, retrieving the specified attributes for the resource
|
![]() ![]() | GetResourceByKey(String, String, Object, CultureInfo) |
Gets a resource from the resource management service using a unique attribute and value combination, retrieving all attributes for the resource
|
![]() ![]() | GetResourceByKey(String, String, Object, IEnumerable<String>, CultureInfo) |
Gets a resource from the resource management service using a unique attribute and value combination, retrieving the specified attributes for the resource
|
![]() | GetResourceCount |
Gets the number of resources that match a specified criteria
|
![]() | GetResources(String) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResources(String, IEnumerable<String>) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the default page size, and retrieving the specified attributes
|
![]() | GetResources(String, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResources(String, Int32) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResources(String, IEnumerable<String>, IEnumerable<SortingAttribute>) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, IEnumerable<String>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the default page size, and retrieving the specified attributes
|
![]() | GetResources(String, Int32, IEnumerable<String>) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, IEnumerable<String>, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, Int32, IEnumerable<String>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResources(String, Int32, IEnumerable<String>, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, synchronously, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, IEnumerable<String>) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, Int32) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, IEnumerable<String>, IEnumerable<SortingAttribute>) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, Int32, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, IEnumerable<SortingAttribute>, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the default page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size
WARNING: Due to the way that the resource management client processes unconstrained XPath queries, this function can cause excessive load on the underlying database. If the object type or attributes are known, use the overload of this function that supports specifying the attributes to get
|
![]() | GetResourcesAsync(String, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, IEnumerable<String>, String, Boolean, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesAsync(String, Int32, IEnumerable<String>, String, Boolean, CancellationTokenSource) |
Uses the specified XPath filter to find matching objects in the resource management service, retrieving all results asynchronously on a separate thread, using the specified page size, and retrieving the specified attributes
|
![]() | GetResourcesPaged(String, Int32) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, IEnumerable<String>) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, IEnumerable<String>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, IEnumerable<String>, IEnumerable<SortingAttribute>, CultureInfo) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetResourcesPaged(String, Int32, IEnumerable<String>, String, Boolean) |
Uses the specified XPath filter to find matching objects in the resource management service, using a SearchResultPager to navigate through the result set
|
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | RefreshSchema |
Reloads the schema from the Resource Management Service
|
![]() | SaveResource(ResourceObject) |
Saves the specified resource in the resource management service
|
![]() | SaveResource(ResourceObject, CultureInfo) |
Saves the specified resource in the resource management service
|
![]() | SaveResources(ResourceObject[]) |
Saves the specified resources in the resource management service. Updates and Adds are committed as a single composite operation.
|
![]() | SaveResources(IEnumerable<ResourceObject>) |
Saves the specified resources in the resource management service. Updates and Adds are committed as a single composite operation.
|
![]() | SaveResourcesParallel(IEnumerable<ResourceObject>) |
Saves the specified resources in the resource management service. Each update is performed on its own thread
|
![]() | SaveResourcesParallel(IEnumerable<ResourceObject>, Int32) |
Saves the specified resources in the resource management service. Each update is performed on its own thread
|
![]() | SaveResourcesParallel(IEnumerable<ResourceObject>, Int32, CultureInfo) |
Saves the specified resources in the resource management service. Each update is performed on its own thread
|
![]() | ToString | (Inherited from Object.) |
using System; using Lithnet.ResourceManagement.Client; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { // Create an instance of the resource management defaultCredentialClient ResourceManagementClient client = new ResourceManagementClient(); // Get the resource with the account name 'testuser' ResourceObject resource = client.GetResourceByKey("Person", "AccountName", "testuser"); // Write the object to the console Console.WriteLine(resource.ToString()); // Get a single attribute Console.WriteLine(resource.Attributes["AccountName"].StringValue); // Change an attribute resource.Attributes["AccountName"].SetValue("NewUsername"); // Save the resource to the fim service resource.Save(); // Create a new object ResourceObject newResource = client.CreateResource("Person"); newResource.Attributes["AccountName"].SetValue("MyNewAccount"); newResource.Attributes["Domain"].SetValue("FIM-DEV1"); // Save the new object to the fim service newResource.Save(); // Search for the newly created object by anchor ResourceObject foundObject = client.GetResourceByKey("Person", "AccountName", "MyNewAccount"); // Delete the object client.DeleteResource(foundObject); // Print the values of the object Console.WriteLine(foundObject.ToString()); // Search for all Sets foreach (ResourceObject result in client.GetResources("/Set")) { Console.WriteLine(result.ToString()); } } } }