RelayConfigurationInstaller Class

Installs the Machine.config settings for the Windows Azure Service Bus relay.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .MarshalByRefObject
    System.ComponentModel. . :: . .Component
      System.Configuration.Install. . :: . .Installer
        Microsoft.ServiceBus.Configuration..::..RelayConfigurationInstaller

Namespace:  Microsoft.ServiceBus.Configuration
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

Syntax

'Declaration
Public Class RelayConfigurationInstaller _
    Inherits Installer
'Usage
Dim instance As RelayConfigurationInstaller
public class RelayConfigurationInstaller : Installer
public ref class RelayConfigurationInstaller : public Installer
type RelayConfigurationInstaller =  
    class
        inherit Installer
    end
public class RelayConfigurationInstaller extends Installer

The RelayConfigurationInstaller type exposes the following members.

Constructors

  Name Description
Public method RelayConfigurationInstaller Initializes a new instance of the RelayConfigurationInstaller class.

Top

Properties

  Name Description
Protected property CanRaiseEvents (Inherited from Component.)
Public property Container (Inherited from Component.)
Public property Context (Inherited from Installer.)
Protected property DesignMode (Inherited from Component.)
Protected property Events (Inherited from Component.)
Public property HelpText (Inherited from Installer.)
Public property Installers (Inherited from Installer.)
Public property Parent (Inherited from Installer.)
Public property Site (Inherited from Component.)

Top

Methods

  Name Description
Public methodStatic member AddRelayConfiguration Adds the entries of the current instance to the specified configuration.
Public method Commit (Inherited from Installer.)
Public method CreateObjRef Security Critical. (Inherited from MarshalByRefObject.)
Public method Dispose() () () () (Inherited from Component.)
Protected method Dispose(Boolean) (Inherited from Component.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Component.)
Public method GetHashCode (Inherited from Object.)
Public method GetLifetimeService Security Critical. (Inherited from MarshalByRefObject.)
Protected method GetService (Inherited from Component.)
Public method GetType (Inherited from Object.)
Public method InitializeLifetimeService Security Critical. (Inherited from MarshalByRefObject.)
Public method Install Adds the entries to the Machine.config file to allow an application using that configuration to use ServiceBus elements in its config file. (Overrides Installer. . :: . .Install(IDictionary).)
Protected method MemberwiseClone() () () () (Inherited from Object.)
Protected method MemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Protected method OnAfterInstall (Inherited from Installer.)
Protected method OnAfterRollback (Inherited from Installer.)
Protected method OnAfterUninstall (Inherited from Installer.)
Protected method OnBeforeInstall (Inherited from Installer.)
Protected method OnBeforeRollback (Inherited from Installer.)
Protected method OnBeforeUninstall (Inherited from Installer.)
Protected method OnCommitted (Inherited from Installer.)
Protected method OnCommitting (Inherited from Installer.)
Public methodStatic member RemoveRelayConfiguration Removes the entries from the specified configuration that allow an application using that configuration to use ServiceBus elements in its config file.
Public method Rollback (Inherited from Installer.)
Public method ToString (Inherited from Component.)
Public method Uninstall Removes the entries from the machine.config that allow an application using that configuration to use ServiceBus elements in its config file. (Overrides Installer. . :: . .Uninstall(IDictionary).)

Top

Events

  Name Description
Public event AfterInstall (Inherited from Installer.)
Public event AfterRollback (Inherited from Installer.)
Public event AfterUninstall (Inherited from Installer.)
Public event BeforeInstall (Inherited from Installer.)
Public event BeforeRollback (Inherited from Installer.)
Public event BeforeUninstall (Inherited from Installer.)
Public event Committed (Inherited from Installer.)
Public event Committing (Inherited from Installer.)
Public event Disposed (Inherited from Component.)

Top

Remarks

Windows Azure Service Bus supports only Full Trust code access security.

RelayConfigurationInstaller is a part of the Windows Azure Service Bus assembly, and allows users to easily add the Machine.config settings necessary for the Windows Azure Service Bus bindings to be supported in App.config. To use RelayConfigurationInstaller, either use Installutil.exe or write an application to call the methods needed. You can also use RelayConfigurationInstaller through the RelayConfigurationInstaller.exe tool, located in the <installdir>/Assemblies directory of the SDK.

The primary scenario for RelayConfigurationInstaller is to assist in installing the necessary Machine.config or App.config information necessary to run a Windows Azure Service Bus application on a computer that does not have Windows Azure Service Bus installed. However, in most scenarios, the application installer for the Windows Azure Service Bus application would automatically install the necessary configuration information. Therefore, this API would likely be used by developer who want additional control over the installation process.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ServiceBus.Configuration Namespace