摆弄微软奥尔良。这是我从教程中编写的筒仓,我得到了“找不到 AppDomainSetup”的奇怪错误,尽管我可以在系统下的文档中看到它。
谷歌搜索导致无处可...
class Program
{
static SiloHost siloHost;
static void Main(string[] args)
{
AppDomain hostDomain = AppDomain.CreateDomain("OrleansHost", null,
new AppDomainSetup()
{
AppDomainInitializer = InitSilo
});
DoSomeClientWork();
Console.WriteLine("Orleans Silo is running.\nPress Enter to terminate...");
Console.ReadLine();
hostDomain.DoCallBack(ShutdownSilo);
}
}