Skip to main content

Interface IMeadowCloudService

An abstraction for the Meadow.Cloud service

Assembly: Meadow.Contracts.dll
View Source
public interface IMeadowCloudService

Properties

CurrentJwt

The current JWT

View Source
string? CurrentJwt { get; }

Methods

Authenticate()

Authenticates with the Meadow.Cloud service

View Source
Task<bool> Authenticate()
Returns

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

SendLog(CloudLog)

Sends a log message to the Meadow.Cloud service

View Source
Task<bool> SendLog(CloudLog cloudLog)
Returns

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

Parameters
TypeNameDescription
Meadow.Cloud.CloudLogcloudLogThe log entry to send

SendEvent(CloudEvent)

Sends a CloudEvent to the Meadow.Cloud service

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

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

Parameters
TypeName
Meadow.Cloud.CloudEventcloudEvent

Events

ServiceError

Event raised when an error occurs

View Source
event EventHandler<string> ServiceError
Event Type

System.EventHandler<System.String>