Dela via


ResourceMirror Class

Definition

Class to synchronize a list of resources with associated source data (items).

public class ResourceMirror
type ResourceMirror = class
Public Class ResourceMirror
Inheritance
ResourceMirror

Constructors

ResourceMirror()

Methods

Sync<ItemType,ResourceType>(IReadOnlyList<ItemType>, List<ResourceType>, ResourceMirror.CompareToResource<ItemType,ResourceType>, ResourceMirror.CreateResource<ItemType, ResourceType>, ResourceMirror.UpdateResource<ItemType,ResourceType>, ResourceMirror.DestroyResource<ResourceType>)

Given a sorted list of source data items (currentItems), and a sorted list of resources: For each source item that doesn't have a matching resource, attempt to create a resource. For each resource that doesn't have a matching source item, destroy that resource. For each source item with a matching resource, update the resource.

Applies to