Interface IFileFactory
Represents a set of methods for getting or creating an instances of the IFile types.
Namespace: Terrasoft.File.Abstractions
Assembly: Terrasoft.File.Abstractions.dll
Syntax
public interface IFileFactory
Properties
UseRights
Flag indicates whether rights should be considered or not.
Declaration
bool UseRights { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Create(IFileLocator, FileOptions)
Creates a new instance of the IFile type by a provided fileLocator
.
Declaration
IFile Create(IFileLocator fileLocator, FileOptions options)
Parameters
Type | Name | Description |
---|---|---|
IFileLocator | fileLocator | An instance of the IFileLocator type. |
FileOptions | options | An instance of the FileOptions type. |
Returns
Type | Description |
---|---|
IFile | The corresponding instance of the IFile type. |
Get(IFileLocator, FileOptions)
Returns an instance of the IFile type by a provided fileLocator
.
Declaration
IFile Get(IFileLocator fileLocator, FileOptions options)
Parameters
Type | Name | Description |
---|---|---|
IFileLocator | fileLocator | An instance of the IFileLocator type. |
FileOptions | options | An instance of the FileOptions type. |
Returns
Type | Description |
---|---|
IFile | The corresponding instance of the IFile type. |