Skip to main content

Class MeadowCloudService

Encapsulates logic for communicating with Meadow.Cloud

Assembly: Meadow.dll
View Source
Declaration
public class MeadowCloudService : IMeadowCloudService

Implements:
Meadow.Cloud.IMeadowCloudService

Properties

Settings

Gets or sets the cloud service settings

View Source
Declaration
public IMeadowCloudSettings Settings { get; protected set; }

CurrentJwt

The current JWT

View Source
Declaration
public string? CurrentJwt { get; protected set; }

Methods

Authenticate()

Authenticates with the Meadow.Cloud service

View Source
Declaration
public Task<bool> Authenticate()
Returns

System.Threading.Tasks.Task<System.Boolean>

SendLog(CloudLog)

Sends a log message to the Meadow.Cloud service

View Source
Declaration
public Task<bool> SendLog(CloudLog log)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
Meadow.Cloud.CloudLoglog

SendEvent(CloudEvent)

Sends a CloudEvent to the Meadow.Cloud service

View Source
Declaration
public Task<bool> SendEvent(CloudEvent cloudEvent)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
Meadow.Cloud.CloudEventcloudEvent

GetPrivateKeyInPemFormat()

View Source
Declaration
public string? GetPrivateKeyInPemFormat()
Returns

System.String

Events

ServiceError

Event raised when an error occurs

View Source
Declaration
public event EventHandler<string> ServiceError
Event Type

System.EventHandler<System.String>

Implements