Skip to content

Class DeviceExtensions

Namespace: Belay.Sync
Assembly: Belay.Sync.dll

Extension methods to add file system support to Device instances. This approach avoids circular dependencies between Belay.Core and Belay.Sync.

csharp
public static class DeviceExtensions

Inheritance

objectDeviceExtensions

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

FileSystem(Device)

Gets a DeviceFileSystem instance for the specified device with lazy initialization. This is the recommended approach for performance-sensitive scenarios.

GetFileSystem(Device, ILogger<DeviceFileSystem>?)

Gets or creates a DeviceFileSystem instance for the specified device.

Released under the Apache License 2.0.