资 源 简 介
Easy to use Direct Connect library wirtten in C#
Example of usage:
```
static void Main(string[] args)
{
// DcEngine is the main thing we will work with
// use EngineSettings structure to set various settings of the engine
Engine = new DcEngine();
// we need to have at least one hub connection to work with
var hubSettings = new HubSettings {
HubAddress = "_write_your_hub_address_here_",
HubName = "My hub",
Nickname = "sharpdc"
};
var hubConnection = new HubConnection(hubSettings);
// we want to see the hub connection status changes for debug puropses
hubConnection.ConnectionStatusChanged += (sender, e) => Console.WriteLine("Hub " + e.Status);
// add this connection to the engine
Engine.Hubs.Add(hubConnection);
// this event will be called when at least one hub will be connected and logged in
Engine.