Exemplo n.º 1
0
        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);
        }
Exemplo n.º 3
0
 public void Init()
 {
     server = MServerFactory.CreateServer("test", true);
 }