Пример #1
0
 public void RegisterHostContext(IHostContext hostContext)
 {
     // Call this only for the default appdomain
     Debug.Assert(AppDomain.CurrentDomain.IsDefaultAppDomain());
     // and only once
     Debug.Assert(domainPool == null);
     SimpleHostAppDomainManager.hostContext = hostContext;
     SimpleHostAppDomainManager.domainPool  = new DomainPool(this);
 }
Пример #2
0
 public SimpleHostServer(SnippetDataRepository repository, DomainPool domainPool)
 {
     this.repository = repository;
     this.domainPool = domainPool;
 }