An SDK conforming to the Spectra Rio Broker specification.
Join us at our Google Groups forum to ask questions, or see frequently asked questions.
The SDK is distributed as a NuGet package for .Net 4.5.2 and above. From the NuGet website:
What is NuGet?
NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.
While the Spectra Rio Broker SDK is not yet in the NuGet Gallery, you can easily create a package feed on your computer using the latest release:
- Download the .nupkg file from the Releases page to a new directory of your choice.
- Follow the NuGet instructions on Creating Local Feeds using the directory that you've created.
This makes the Spectra Rio Broker SDK available for installation into a Visual Studio .NET Project.
- Open your existing .NET project or create a new one.
- Right-click the project and click "Manage NuGet Packages..."
- Choose the package source you created for the NuGet package.
- Click "Browse" on the left panel.
- In the search box on the upper right, type "SpectraRioBroker".
- Click the "Install" button on the right and close the package manager dialog.
Your project should now reference the SDK and be able to use its API.
SDK documentation can be found here Documentation
The example below shows how to configure and instantiate ISpectraRioBrokerClient
using SpectraLogic.SpectraRioBrokerClient;
namespace application
{
class Class1
{
public ISpectraRioBrokerClient CreateClient()
{
var spectraRioBrokerClientBuilder = new SpectraRioBrokerClientBuilder("localhost", 5050);
return spectraRioBrokerClientBuilder.DisableSslValidation().Build();
}
}
}
The example below shows how to use ISpectraRioBrokerClient
and send a request to Spectra Rio Broker Server (ex. CreateToken)
using SpectraLogic.SpectraRioBrokerClient;
using SpectraLogic.SpectraRioBrokerClient.Calls;
using SpectraLogic.SpectraRioBrokerClient.Model;
namespace your.application
{
class Class1
{
public ISpectraRioBrokerClient CreateClient()
{
var spectraRioBrokerClientBuilder = new SpectraRioBrokerClientBuilder("localhost", 5050);
return spectraRioBrokerClientBuilder.DisableSslValidation().Build();
}
public IToken CreateToken()
{
var client = CreateClient();
var request = new CreateTokenRequest("username", "password");
return client.CreateToken(request);
}
}
}
For more examples and uses of the SDK SpectraLogic.SpectraRioBrokerClient.Integration.Test