LogoLogo
AMPS C#/.NET Client 5.3.3
AMPS C#/.NET Client 5.3.3
  • Welcome to the AMPS C#/.NET Client
    • Before You Start
    • Obtaining and Installing the AMPS C#/.NET Client
    • Your First AMPS Program
      • Client Identification
      • Connection Strings for AMPS
      • Connection Parameters for AMPS
      • Providing Credentials to AMPS
      • Assembly Deployment
    • Subscriptions
      • Content Filtering
        • Changing the Filter on a Subscription
      • Understanding Message Objects
      • Synchronous Message Processing
      • Asynchronous Message Processing
        • Understanding Threading
      • Regular Expression Subscriptions
      • Ending Subscriptions
    • Error Handling
      • Exceptions
      • Exception Types
      • Exception Handling and Asynchronous Message Processing
      • Controlling Blocking with Command Timeout
      • Disconnect Handling
        • Using a Heartbeat to Detect Disconnection
        • Managing Disconnection
        • Replacing Disconnect Handling
      • Unexpected Messages
      • Unhandled Exceptions
      • Detecting Write Failures
      • Monitoring Connection State
    • State of the World
      • SOW and Subscribe
      • Setting Batch Size
      • Managing SOW Contents
      • Client Side Conflation
    • Using Queues
      • Backlog and Smart Pipelining
      • Acknowledging Messages
      • Acknowledgement Batching
      • Returning a Message to the Queue
      • Manual Acknowledgement
    • Delta Publish and Subscribe
      • Delta Subscribe
      • Delta Publish
    • High Availability
    • AMPS Programming: Working with Commands
    • Utility Classes
    • Advanced Topics
    • Exceptions Reference
    • AMPS Server Documentation
    • API Documentation
Powered by GitBook

Get Help

  • FAQ
  • Legacy Documentation
  • Support / Contact Us

Get AMPS

  • Evaluate
  • Develop

60East Resources

  • Website
  • Privacy Policy

Copyright 2013-2024 60East Technologies, Inc.

On this page
Export as PDF
  1. Welcome to the AMPS C#/.NET Client
  2. Your First AMPS Program

Assembly Deployment

PreviousProviding Credentials to AMPSNextSubscriptions

Last updated 3 months ago

Once your application is built, you will need to think about how to deploy it to additional computers. With your application’s dependency on AMPS.Client.dll, you need to include AMPS.Client.dll along with your application. The most straightforward way to accomplish this is to install AMPS.Client.dll into the same folder as your .exe file. For example, if you distribute your executable in a zip file that users are expected to unpack, simply include AMPS.Client.dll assemblies into that zip file. When your executable runs, Windows will attempt to load AMPS.Client.dll from the same directory as your executable, and if it is not found, your executable will fail to run.

If your organization develops and deploys many AMPS applications and would like more centralized control over the maintenance of these AMPS client deployments, consider installing AMPS.Client.dll into the Global Assembly Cache ("GAC"). The GAC allows you to share one copy of an assembly — like the AMPS client — across many applications on a computer. This technique requires that the assembly have a strong name, and that you use an installer that places AMPS.Client.dll into the GAC. Installing the assembly in the GAC is not recommended unless many applications will share an AMPS client. For more information on the GAC, follow the link to the Microsoft Developer Network documentation on the GAC.

You are now able to develop and deploy an application in C# that publishes messages to AMPS. In the following chapters, you will learn how to subscribe to messages, use content filters, work with SOW caches and fine-tune messages that you send.

http://msdn.microsoft.com/en-us/library/yf1d93sz.aspx