Hi Mehmet,
Do you really need to have your entire project in C#, or is it enough to add custom scripts into Bonsai? I would suggest experimenting with C# first inside Bonsai itself, so you can easily setup your project by using the C# scripting nodes: CSharpSource for example, you can use to replace for example FileCapture with your random source of frames, and have something like the following:
Then inside the script you can specify a totally different way of feeding frames to DLC and it should still work fine.
If you really need to, it is also possible to use Bonsai.DeepLabCut directly from a C# project by adding it as a dependency. Make sure you use .NET 4.7.2 and add something like this in your .csproj file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bonsai.DeepLabCut" Version="0.2.0" />
</ItemGroup>
</Project>
This should download the Bonsai.DeepLabCut package straight into your project and you can then call the functions by setting up a reactive pipeline directly in C#. This would be exactly the same as scripting in C# inside Bonsai, which is why I also suggested starting there.
Hope this helps.