change Abstracts namespace

This commit is contained in:
Oceania2018 2019-03-16 19:55:55 -05:00
parent 0419396555
commit 8b06adfc04
43 changed files with 55 additions and 94 deletions

View file

@ -13,7 +13,9 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BotSharp.Platform.Articulate\BotSharp.Platform.Articulate.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Dialogflow\BotSharp.Platform.Dialogflow.csproj" />
<ProjectReference Include="..\BotSharp.Platform.OwnThink\BotSharp.Platform.OwnThink.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Rasa\BotSharp.Platform.Rasa.csproj" />
</ItemGroup>

View file

@ -24,7 +24,9 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BotSharp.Platform.Articulate\BotSharp.Platform.Articulate.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Dialogflow\BotSharp.Platform.Dialogflow.csproj" />
<ProjectReference Include="..\BotSharp.Platform.OwnThink\BotSharp.Platform.OwnThink.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Rasa\BotSharp.Platform.Rasa.csproj" />
</ItemGroup>

View file

@ -1,5 +1,5 @@
using BotSharp.Channel.Weixin.Models;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Dialogflow.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;

View file

@ -30,7 +30,7 @@ using Senparc.NeuChar.Entities;
using Senparc.Weixin;
using Senparc.Weixin.MP;
using BotSharp.Platform.Models.AiRequest;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Dialogflow.Models;
using Microsoft.Extensions.Configuration;

View file

@ -1,14 +1,10 @@
using BotSharp.Core.Modules;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Senparc.CO2NET;
using Senparc.CO2NET.RegisterServices;
using Senparc.Weixin.RegisterServices;
using System;
namespace BotSharp.Channel.Weixin
{

View file

@ -1,5 +1,5 @@
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

View file

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
public interface IAgentImporter<TAgent>
{

View file

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
/// <summary>
/// Agent could be persisted in any kind of storage.

View file

@ -1,8 +1,7 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
public interface IAgentStorageFactory<TAgent> where TAgent : AgentBase
{

View file

@ -3,7 +3,7 @@ using BotSharp.Platform.Models.AiRequest;
using BotSharp.Platform.Models.AiResponse;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
/// <summary>
/// BotEngine is the NLU of bot platform

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
public interface IContextStorage<T>
{

View file

@ -1,8 +1,6 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using System.Threading.Tasks;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
public interface IContextStorageFactory<T>
{

View file

@ -4,7 +4,7 @@ using BotSharp.Platform.Models.AiResponse;
using BotSharp.Platform.Models.MachineLearning;
using System.Threading.Tasks;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
/// <summary>
/// Platform abstraction

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Platform.Abstraction
namespace BotSharp.Platform.Abstractions
{
public interface IPlatformSettings
{

View file

@ -1,5 +1,4 @@
using BotSharp.Core;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using CSRedis;
using Microsoft.Extensions.Configuration;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using CSRedis;
using Microsoft.Extensions.Configuration;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;

View file

@ -6,7 +6,7 @@
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
<Platforms>AnyCPU;x64</Platforms>
<Configurations>Debug;Release;DIALOGFLOW;RASA;ARTICULATE</Configurations>
<Configurations>Debug;Release;</Configurations>
</PropertyGroup>
<PropertyGroup>
@ -34,60 +34,43 @@ If you feel that this project is helpful to you, please Star on the project, we
<DefineConstants>TRACE;DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RASA|AnyCPU'">
<DefineConstants>TRACE;DEBUG;RASA</DefineConstants>
<OutputPath>bin\RASA</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>TRACE;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DIALOGFLOW|AnyCPU'">
<DefineConstants>DEBUG;TRACE;DIALOGFLOW;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ARTICULATE|AnyCPU'">
<DefineConstants>DEBUG;TRACE;ARTICULATE</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Accounts\**" />
<Compile Remove="Engines\NERs\**" />
<Compile Remove="Engines\QuickQA\**" />
<Compile Remove="Engines\Rasa\**" />
<Compile Remove="Engines\Sebis\**" />
<Compile Remove="Engines\SpaCy\**" />
<EmbeddedResource Remove="Accounts\**" />
<EmbeddedResource Remove="Engines\NERs\**" />
<EmbeddedResource Remove="Engines\QuickQA\**" />
<EmbeddedResource Remove="Engines\Rasa\**" />
<EmbeddedResource Remove="Engines\Sebis\**" />
<EmbeddedResource Remove="Engines\SpaCy\**" />
<None Remove="Accounts\**" />
<None Remove="Engines\NERs\**" />
<None Remove="Engines\QuickQA\**" />
<None Remove="Engines\Rasa\**" />
<None Remove="Engines\Sebis\**" />
<None Remove="Engines\SpaCy\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="CoreController.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CherubNLP" Version="0.2.0" />
<PackageReference Include="Colorful.Console" Version="1.2.9" />
<PackageReference Include="CSRedisCore" Version="3.0.41" />
<PackageReference Include="CSRedisCore" Version="3.0.45" />
<PackageReference Include="DotNetToolkit" Version="1.7.0" />
<PackageReference Include="EntityFrameworkCore.BootKit" Version="1.11.0" />
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.2" />
<PackageReference Include="EntityFrameworkCore.BootKit" Version="1.12.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="NumSharp" Version="0.7.4" />
<PackageReference Include="NumSharp" Version="0.8.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
<PackageReference Include="TensorFlow.NET" Version="0.4.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="Engines\OwnThink\" />
</ItemGroup>
</Project>

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using System;
using System.Collections.Generic;
using System.Text;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
namespace BotSharp.Core.Engines.BotSharp

View file

@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotSharp.Core.Abstractions;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.MachineLearning;
using DotNetToolkit;

View file

@ -1,5 +1,5 @@
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.AiRequest;
using BotSharp.Platform.Models.AiResponse;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using Colorful;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

View file

@ -1,4 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
using System;

View file

@ -1,6 +1,6 @@
using BotSharp.Core;
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Articulate.Models;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.AiRequest;

View file

@ -1,9 +1,5 @@
using BotSharp.Core;
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Articulate.Models;
using BotSharp.Platform.Articulate.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;

View file

@ -1,5 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models;
using System;
using System.Collections.Generic;
using System.Text;

View file

@ -1,7 +1,6 @@
using BotSharp.Core;
using BotSharp.Core.AgentStorage;
using BotSharp.Core.Modules;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Articulate.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;

View file

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.AiResponse;
using BotSharp.Platform.Models.Intents;
@ -13,6 +12,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using BotSharp.Platform.Dialogflow.Models;
using System.Threading.Tasks;
using BotSharp.Platform.Abstractions;
namespace BotSharp.Platform.Dialogflow
{

View file

@ -1,20 +1,13 @@
using BotSharp.Core.Engines;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
using BotSharp.Platform.Dialogflow.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using BotSharp.Platform.Models.MachineLearning;
using BotSharp.Platform.Abstraction;
namespace BotSharp.Platform.Dialogflow.Controllers
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotSharp.Core;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using DotNetToolkit;
using BotSharp.Platform.Dialogflow.Models;
@ -27,7 +27,7 @@ namespace BotSharp.Platform.Dialogflow
IConfiguration config;
public DialogflowAi(IAgentStorageFactory<TAgent> agentStorageFactory, IContextStorageFactory<AIContext> contextStorageFactory, IPlatformSettings settings, IConfiguration config)
:base(agentStorageFactory, contextStorageFactory, settings)
: base(agentStorageFactory, contextStorageFactory, settings)
{
this.config = config;
}

View file

@ -1,5 +1,4 @@
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models;
using System;
using System.Collections.Generic;
using System.Text;

View file

@ -2,7 +2,7 @@
using BotSharp.Core.AgentStorage;
using BotSharp.Core.ContextStorage;
using BotSharp.Core.Modules;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Dialogflow.Models;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.Contexts;

View file

@ -2,7 +2,7 @@
using BotSharp.Core.AgentStorage;
using BotSharp.Core.ContextStorage;
using BotSharp.Core.Modules;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.OwnThink.Models;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.Contexts;

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotSharp.Core;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using DotNetToolkit;
using BotSharp.Platform.OwnThink.Models;

View file

@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.Intents;
using BotSharp.Platform.Rasa.Models;

View file

@ -1,5 +1,5 @@
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.MachineLearning;
using BotSharp.Platform.Rasa.Models;

View file

@ -1,6 +1,6 @@
using BotSharp.Core;
using BotSharp.Core.Engines;
using BotSharp.Platform.Abstraction;
using BotSharp.Platform.Abstractions;
using BotSharp.Platform.Models;
using BotSharp.Platform.Models.AiRequest;
using BotSharp.Platform.Models.AiResponse;

View file

@ -90,10 +90,6 @@
<ItemGroup>
<ProjectReference Include="..\BotSharp.Channel.FacebookMessenger\BotSharp.Channel.FacebookMessenger.csproj" />
<ProjectReference Include="..\BotSharp.Channel.Weixin\BotSharp.Channel.Weixin.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Articulate\BotSharp.Platform.Articulate.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Dialogflow\BotSharp.Platform.Dialogflow.csproj" />
<ProjectReference Include="..\BotSharp.Platform.OwnThink\BotSharp.Platform.OwnThink.csproj" />
<ProjectReference Include="..\BotSharp.Platform.Rasa\BotSharp.Platform.Rasa.csproj" />
</ItemGroup>
<ItemGroup>