public void MBeanInstantiationWithinAppDomain() { MServer server = null; try { server = MServerFactory.CreateServer(true); AssertNotNull(server); Assert(RemotingServices.IsTransparentProxy(server)); } finally { MServerFactory.Release(server); } }
public void Init(IKernel kernel, IConfiguration config) { _kernel = kernel; _mserver = MServerFactory.CreateServer("castle.domain", false); _serverConn = MConnectorServerFactory.CreateServer( "provider:http:binary:test.rem", null, _mserver); _kernel.ComponentModelBuilder.AddContributor( new ManagementExtensionModelServerInspector()); _kernel.ComponentCreated += new ComponentInstanceDelegate(OnComponentCreated); _kernel.ComponentDestroyed += new ComponentInstanceDelegate(OnComponentDestroyed); }
public void Terminate() { MServerFactory.Release(server); }
public void Init() { server = MServerFactory.CreateServer("test", true); }