Skip to main content

Interface IMeadowCloudService

An abstraction for the Meadow.Cloud service

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

Properties

CurrentJwt

The current JWT

View Source
Declaration
string? CurrentJwt { get; }

Methods

Authenticate()

Authenticates with the Meadow.Cloud service

View Source
Declaration
Task<bool> Authenticate()
Returns

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

SendLog(CloudLog)

Sends a log message to the Meadow.Cloud service

View Source
Declaration
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
Declaration
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
Declaration
event EventHandler<string> ServiceError
Event Type

System.EventHandler<System.String>