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
Type | Name | Description |
---|---|---|
Meadow.Cloud.CloudLog | cloudLog | The 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
Type | Name |
---|---|
Meadow.Cloud.CloudEvent | cloudEvent |
Events
ServiceError
Event raised when an error occurs
View Source
event EventHandler<string> ServiceError
Event Type
System.EventHandler<System.String>