コード例 #1
0
        public void MBeanInstantiationWithinAppDomain()
        {
            MServer server = null;

            try
            {
                server = MServerFactory.CreateServer(true);
                AssertNotNull(server);
                Assert(RemotingServices.IsTransparentProxy(server));
            }
            finally
            {
                MServerFactory.Release(server);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void Terminate()
 {
     MServerFactory.Release(server);
 }
コード例 #4
0
 public void Init()
 {
     server = MServerFactory.CreateServer("test", true);
 }