.NET Assembly
Making plugin as a .NET assembly is the convenient way to build a plugin.
- [+] Since all calls are made within the same process, the data processing is very efficient.
- [-] It is not supported with the QueryCat CLI. You should include QueryCat as a package in your .NET project.
- [-] Only .NET specific language can be used.
To prepare a plugin follow the steps:
-
Create a new empty library project.
dotnet new classlib --name SimplePluginNOTE: The plugin must contain "Plugin" (case insensitive) word in its name.
-
Reference
QueryCat.Plugins.Clientproject. Right now it is not available in NuGet, you can clone the repository somewhere and reference it. For example:<ItemGroup> <ProjectReference Include="..\querycat\src\QueryCat.Plugins.Client\QueryCat.Plugins.Client.csproj" /> </ItemGroup> -
Implement functions and rows inputs. They will be discovered in the assembly using reflection.
-
Publish the assembly. It can be published as
.dllor.nupkgfile.