Interface IResource<TSelf, TResource>
The stateful model interface.
Inherited Members
System.IDisposable.Dispose()
Namespace: Microsoft.Graph.StatefulClient
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public interface IResource<out TSelf, TResource> : IDisposable where TSelf : IResource<TSelf, TResource> where TResource : Entity
Type Parameters
Name | Description |
---|---|
TSelf | The self type of the resource. |
TResource | The containing Resource type. |
Properties
View SourceClient
Gets the client.
Declaration
IStatefulClient Client { get; }
Property Value
Type | Description |
---|---|
IStatefulClient |
GraphClient
Gets the graph client.
Declaration
IGraphClient GraphClient { get; }
Property Value
Type | Description |
---|---|
Microsoft.Graph.Core.Transport.IGraphClient |
GraphLogger
Gets the graph logger.
Declaration
IGraphLogger GraphLogger { get; }
Property Value
Type | Description |
---|---|
Microsoft.Graph.Core.Telemetry.IGraphLogger |
Id
Gets the identifier.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Resource
Gets the resource.
Declaration
TResource Resource { get; }
Property Value
Type | Description |
---|---|
TResource |
Methods
View SourceDeleteAsync(CancellationToken)
Deletes this instance asynchronously.
Declaration
Task DeleteAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The System.Threading.CancellationToken for the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The System.Threading.Tasks.Task to await. |
UpdateResource(TResource)
Updates the model with specified resource.
Declaration
void UpdateResource(TResource resource)
Parameters
Type | Name | Description |
---|---|---|
TResource | resource | The resource to update |
Events
View SourceOnUpdated
Event fired when this resource has been updated.
Declaration
event ResourceEventHandler<TSelf, TResource> OnUpdated
Event Type
Type | Description |
---|---|
ResourceEventHandler<TSelf, TResource> |
Extension Methods
See Also
System.IDisposable