Browse Source

Client: ISMBFileStore interface added

Tal Aloni 7 years ago
parent
commit
ad996ed934

+ 15 - 0
SMBLibrary/Client/ISMBFileStore.cs

@@ -0,0 +1,15 @@
+/* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
+ * 
+ * You can redistribute this program and/or modify it under the terms of
+ * the GNU Lesser Public License as published by the Free Software Foundation,
+ * either version 3 of the License, or (at your option) any later version.
+ */
+using System;
+
+namespace SMBLibrary.Client
+{
+    public interface ISMBFileStore : INTFileStore
+    {
+        NTStatus Disconnect();
+    }
+}

+ 1 - 1
SMBLibrary/Client/SMB1FileStore.cs

@@ -11,7 +11,7 @@ using Utilities;
 
 namespace SMBLibrary.Client
 {
-    public class SMB1FileStore : INTFileStore
+    public class SMB1FileStore : ISMBFileStore
     {
         private SMB1Client m_client;
         private ushort m_treeID;

+ 1 - 1
SMBLibrary/Client/SMB2FileStore.cs

@@ -11,7 +11,7 @@ using Utilities;
 
 namespace SMBLibrary.Client
 {
-    public class SMB2FileStore : INTFileStore
+    public class SMB2FileStore : ISMBFileStore
     {
         private SMB2Client m_client;
         private uint m_treeID;

+ 1 - 0
SMBLibrary/SMBLibrary.csproj

@@ -58,6 +58,7 @@
     <Compile Include="Client\Enums\AuthenticationMethod.cs" />
     <Compile Include="Client\Helpers\NTLMAuthenticationHelper.cs" />
     <Compile Include="Client\Helpers\ServerServiceHelper.cs" />
+    <Compile Include="Client\ISMBFileStore.cs" />
     <Compile Include="Client\SMB1Client.cs" />
     <Compile Include="Client\SMB1FileStore.cs" />
     <Compile Include="Client\SMB2Client.cs" />