|
|
|
|
@ -0,0 +1,24 @@ |
|
|
|
|
// Author: Gockner, Simon |
|
|
|
|
// Created: 2020-01-24 |
|
|
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
|
using System.Threading; |
|
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
|
|
namespace GBase.Interfaces.FileHandling |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Internal file handler |
|
|
|
|
/// </summary> |
|
|
|
|
internal interface IFileHandler : IAsyncDisposable |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Initialize this <see cref="IFileHandler"/> |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="path">The path of the database</param> |
|
|
|
|
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to cancel the asynchronous operation</param> |
|
|
|
|
/// <returns>True if successful, false if not</returns> |
|
|
|
|
Task<bool> Init(string path, CancellationToken cancellationToken); |
|
|
|
|
} |
|
|
|
|
} |