dependabot[bot] on nuget
dependabot[bot] on nuget
Bump Newtonsoft.Json in /Plugin… (compare)
dependabot[bot] on nuget
dependabot[bot] on nuget
Bump Newtonsoft.Json from 10.0.… (compare)
dependabot[bot] on nuget
dependabot[bot] on nuget
Bump Newtonsoft.Json from 10.0.… (compare)
dependabot[bot] on nuget
Import()
method.
Syn.Bot.Channels
framework you may refer the Walkthroughs
public partial class Index : System.Web.UI.Page
{
private static WebApiChannel<OscovaBot> _botApiServer;
static Index()
{
Index index = new Index();
index.LaunchOscovaBot();
}
private void LaunchOscovaBot()
{
string logFilepath = System.Configuration.ConfigurationManager.AppSettings["BasePath"].ToString() + "Logs//" + DateTime.Today.ToShortDateString() + ".txt";
try
{
OscovaBot.Activate("Enterprise", "xxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxx");
var apiUrl = System.Configuration.ConfigurationManager.AppSettings["WebApiChennalBaseUrl"].ToString();
OscovaBot oscovaBot = new OscovaBot();
ConfigureBot.SetBotConfiguration(oscovaBot);
_botApiServer = new WebApiChannel<OscovaBot>(oscovaBot, apiUrl);
_botApiServer.Logger.LogReceived += (sender, eventArgs) =>
{
Console.WriteLine(eventArgs.Log);
};
_botApiServer.Start();
}
catch (Exception ex)
{
Console.WriteLine(ex.StackTrace);
}
}
}