Show / Hide Table of Contents

# Class ServiceStopper

Simple IStoppable service stopper class. Can be used to Stop multiple IStoppable instances without throwing an exception. Once all services have been stopped, the first thrown exception can be fired.

##### Inheritance

System.Object
ServiceStopper

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.Util

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public class ServiceStopper

### Methods

| Improve this Doc View Source

#### Stop(IStoppable)

##### Declaration

    public void Stop(IStoppable service)

##### Parameters

Type | Name | Description
--- | --- | ---
Apache.NMS.IStoppable | service |

| Improve this Doc View Source

#### ThrowFirstException()

##### Declaration

    public void ThrowFirstException()