Interface ISharedResourceRentController
Manages the rental status of a shared resource, allowing multiple reasons for the resource to be rented.
Inherited Members
Namespace: PoeShared.Services
Assembly: PoeShared.dll
Syntax
public interface ISharedResourceRentController : INotifyPropertyChanged
Examples
This example demonstrates how to use the ISharedResourceRentController interface to rent a resource.
var manager = new SharedResourceRentManager();
using (manager.Rent("Task A"))
{
// The resource is now rented for Task A.
// Do work with the rented resource.
}
// The resource is no longer rented for Task A.
Properties
Name | Description |
---|---|
IsRented | Provides the current rental status of the resource. If there are multiple reasons why the resource is rented, they will all be listed together. |
Methods
Name | Description |
---|---|
Rent(string) | Temporarily rents the resource for the specified reason. |
Extension Methods
NotifyPropertyChangedExtensions.GetPropertyName<TObject, T1>(TObject, Expression<Func<TObject, T1>>)
NotifyPropertyChangedExtensions.WhenAnyProperty<TObject, T1>(TObject, Expression<Func<TObject, T1>>)