All Projects → SolaceSamples → solace-samples-dotnet

SolaceSamples / solace-samples-dotnet

Licence: Apache-2.0 License
Getting Started Samples for the Solace .NET API

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to solace-samples-dotnet

solace-samples-mqtt
Getting Started Samples for using MQTT with Solace Message Routers.
Stars: ✭ 28 (-6.67%)
Mutual labels:  solace, solace-samples
solace-samples-cloudfoundry-java
Samples showing how to connect and exchange messages with Solace Messaging for Pivotal Cloud Foundry.
Stars: ✭ 29 (-3.33%)
Mutual labels:  solace, solace-samples
solace-samples-jms
Getting Started Samples for the Solace JMS API.
Stars: ✭ 31 (+3.33%)
Mutual labels:  solace, solace-samples
solace-samples-openmama
Tutorials for the Solace Transport Bridge of OpenMAMA
Stars: ✭ 19 (-36.67%)
Mutual labels:  solace, solace-samples
solace-samples-javascript
Getting Started Samples for the Solace JavaScript API.
Stars: ✭ 26 (-13.33%)
Mutual labels:  solace, solace-samples
solace-samples-rest-messaging
Tutorials show how to use the Solace REST Messaging API
Stars: ✭ 23 (-23.33%)
Mutual labels:  solace, solace-samples
solace-integration-guides
solacelabs.github.io/solace-integration-guides/
Stars: ✭ 12 (-60%)
Mutual labels:  solace
covid19-stream-processors
Stream Information & Example Applications for Processing JHU and CovidTracking.com COVID-19 data available as streams over Solace
Stars: ✭ 35 (+16.67%)
Mutual labels:  solace
solace-java-spring-boot
A Spring Boot auto-configuration and starter for the Solace Java API.
Stars: ✭ 18 (-40%)
Mutual labels:  solace

Getting Started Examples

Solace C#/.NET API

The "Getting Started" tutorials will get you up to speed and sending messages with Solace technology as quickly as possible. There are three ways you can get started:

  • Follow these instructions to quickly spin up a cloud-based Solace messaging service for your applications.
  • Follow these instructions to start the Solace VMR in leading Clouds, Container Platforms or Hypervisors. The tutorials outline where to download and how to install the Solace VMR.
  • If your company has Solace message routers deployed, contact your middleware team to obtain the host name or IP address of a Solace message router to test against, a username and password to access it, and a VPN in which you can produce and consume messages.

Contents

This repository contains code and matching tutorial walk throughs for five different basic Solace messaging patterns. For a nice introduction to the Solace API and associated tutorials, check out the tutorials home page.

Obtaining the Solace API

This tutorial depends on you having the Solace Messaging API for C#/.NET (also referred to as SolClient for .NET) downloaded and installed for your project, and the instructions in this tutorial assume you successfully done it. If your environment differs then adjust the build instructions appropriately.

Here are a few easy ways to get this API.

Get the API: Using nuget.org

Use the NuGet console or the NuGet Visual Studio Extension to download the SolaceSystems.Solclient.Messaging package for your solution and to install it for your project.

The package contains the required libraries and brief API documentation. It will automatically copy correct libraries from the package to the target directory at build time, but of course if you compile your program from the command line you would need to refer to the API assemblies and libraries locations explicitly.

Notice that in this case both x64 and x86 API assemblies and libraries have the same names.

Get the API: Using the Solace Developer Portal

The SolClient for .NET can be downloaded here. That distribution is a zip file containing the required libraries, detailed API documentation, and examples.

You would need either to update your Visual Studio project to point to the extracted assemblies and libraries, or to refer to their locations explicitly.

Notice that in this case x64 and x86 API assemblies and libraries have different names, e.g. the x86 API assembly is SolaceSystems.Solclient.Messaging.dll and the x64 API assembly is SolaceSystems.Solclient.Messaging_64.dll.

Checking out and Building

To check out the project and build it, do the following:

  1. clone this GitHub repository
  2. cd solace-samples-dotnet

Build the Samples

Building these examples is simple. The following provides an example. For ideas on how to build with other IDEs you can consult the README of the C# API library.

> csc /reference:SolaceSystems.Solclient.Messaging_64.dll /optimize /out:TopicPublisher.exe  TopicPublisher.cs
> csc /reference:SolaceSystems.Solclient.Messaging_64.dll /optimize /out:TopicSubscriber.exe  TopicSubscriber.cs

You need SolaceSystems.Solclient.Messaging_64.dll (or SolaceSystems.Solclient.Messaging.dll) at compile and runtime time and libsolclient.dll at runtime in the same directory where your source and executables are.

Both DLLs are part of the Solace C#/.NET API distribution and located in bin\Win64 (or bin\Win32) directory of that distribution.

Running the Samples

To try individual samples, build the project from source and then run samples like the following:

$ ./TopicSubscriber HOST

See the tutorials for more details.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the Apache License, Version 2.0. - See the LICENSE file for details.

Resources

For more information try these resources:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].