Example #1
0
        /// <summary>
        /// Returns true if child service was unregistered, false if it did not exist.
        /// The method may only be called on stopped (this) service
        /// </summary>
        public bool UnregisterService(Service service)
        {
            this.CheckServiceInactive();
            var csvc = new ChildService(service, 0, false);

            return(m_Services.Unregister(csvc));
        }
Example #2
0
        /// <summary>
        /// Returns true if child service was registered, false if it was already registered prior tp this call.
        /// The method may only be called on stopped (this) service
        /// </summary>
        public bool RegisterService(Service service, int order, bool abortStart)
        {
            this.CheckServiceInactive();
            var csvc = new ChildService(service, order, abortStart);

            return(m_Services.Register(csvc));
        }
Example #3
0
 /// <summary>
 /// Returns true if child service was unregistered, false if it did not exist.
 /// The method may only be called on stopped (this) service
 /// </summary>
 public bool UnregisterService(Service service)
 {
     this.CheckServiceInactive();
        var csvc = new ChildService(service, 0, false);
        return m_Services.Unregister(csvc);
 }
Example #4
0
 /// <summary>
 /// Returns true if child service was registered, false if it was already registered prior tp this call.
 /// The method may only be called on stopped (this) service
 /// </summary>
 public bool RegisterService(Service service, int order, bool abortStart)
 {
     this.CheckServiceInactive();
        var csvc = new ChildService(service, order, abortStart);
        return m_Services.Register( csvc );
 }