Archived

This forum has been archived. Please start a new discussion on GitHub.

Get Name Ice Box from its service

Hi all!

How in service get name its IceBOX?
 public class ServiceI : IceBox.Service
    {
  
        public void start(string name, Ice.Communicator communicator, string[] args)
        {
            _name = name;
            // How get name Ice Box in this point?
            InitMonitoringSystem(name, communicator);
            InitServiceProtection(name, communicator, args);
        }

       ...

Comments

  • bernard
    bernard Jupiter, FL
    Hi Victor,

    Your question is not very clear. Are you asking where the IceBox service name is coming from?

    The IceBox service name is coming from the IceBox configuration:
    Configuring IceBox Services - Ice 3.5 - ZeroC

    It's IceBox.Service.ServiceName=...

    and ServiceName is (and sets) the name of the service.

    Best regards,
    Bernard