From ec4bff61fba2f0f7ca963cfc5b0eb02d92a980bb Mon Sep 17 00:00:00 2001 From: Simon Gockner Date: Fri, 24 Jan 2020 16:06:43 +0100 Subject: [PATCH] - add file handler interface --- GBase/Interfaces/FileHandling/IFileHandler.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 GBase/Interfaces/FileHandling/IFileHandler.cs 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