diff --git a/GBase/Interfaces/FileHandling/IFileHandler.cs b/GBase/Interfaces/FileHandling/IFileHandler.cs new file mode 100644 index 0000000..04ca289 --- /dev/null +++ b/GBase/Interfaces/FileHandling/IFileHandler.cs @@ -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 +{ + /// + /// Internal file handler + /// + internal interface IFileHandler : IAsyncDisposable + { + /// + /// Initialize this + /// + /// The path of the database + /// A to cancel the asynchronous operation + /// True if successful, false if not + Task Init(string path, CancellationToken cancellationToken); + } +} \ No newline at end of file