Наследование: System.MarshalByRefObject, MRegistrationListener, IDisposable
		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);
		}
Пример #2
0
		public override MConnectorServer CreateServer(String url, NameValueCollection properties, MServer server)
		{
			String[] parts = StripUrl(url);
			String formatter = parts[2];
			String objectUri = parts[3];
			
			TcpChannel channel = CreateChannel(formatter, properties, true);

			MConnectorServer connServer = null;

			if (server != null)
			{
				connServer = new MConnectorServer(server, objectUri);
			}
			else
			{
				connServer = new MConnectorServer(objectUri);
			}

			return connServer;
		}