Class CoapConnection<TPrimitiveContent>
Inheritance
object
CoapConnection<TPrimitiveContent>
Assembly: Aetheros.OneM2M.Api.dll
Syntax
public abstract class CoapConnection<TPrimitiveContent> : Connection<TPrimitiveContent>, IDisposable where TPrimitiveContent : PrimitiveContent, new()
Type Parameters
Name |
Description |
TPrimitiveContent |
|
Constructors
|
Edit this page
View Source
CoapConnection(IConnectionConfiguration)
Declaration
public CoapConnection(Connection.IConnectionConfiguration config)
Parameters
|
Edit this page
View Source
CoapConnection(Uri, X509Certificate2?)
Declaration
public CoapConnection(Uri m2mUrl, X509Certificate2? certificate = null)
Parameters
|
Edit this page
View Source
CoapConnection(Uri, string?)
Declaration
public CoapConnection(Uri m2mUrl, string? certificateFilename)
Parameters
Type |
Name |
Description |
Uri |
m2mUrl |
|
string |
certificateFilename |
|
Properties
|
Edit this page
View Source
ClientCertificate
Declaration
public X509Certificate2? ClientCertificate { get; }
Property Value
|
Edit this page
View Source
IsSecure
Declaration
public override bool IsSecure { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
CreateNotificationResource(string)
Declaration
public Resource CreateNotificationResource(string name = "notify")
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type |
Description |
Resource |
|
|
Edit this page
View Source
GetResponseAsync(Request)
Declaration
public Task<ResponseContent<TPrimitiveContent>> GetResponseAsync(Request request)
Parameters
Type |
Name |
Description |
Request |
request |
|
Returns
|
Edit this page
View Source
GetResponseAsync<T>(RequestPrimitive<TPrimitiveContent>)
Declaration
public override Task<T> GetResponseAsync<T>(RequestPrimitive<TPrimitiveContent> body) where T : class, new()
Parameters
Returns
Type Parameters
Overrides
|
Edit this page
View Source
GetResponseAsync<T>(Request)
Declaration
public Task<T> GetResponseAsync<T>(Request request) where T : class, new()
Parameters
Type |
Name |
Description |
Request |
request |
|
Returns
Type Parameters
|
Edit this page
View Source
HandleNotificationAsync(CoapExchange)
Declaration
public Task HandleNotificationAsync(CoapExchange exchange)
Parameters
Type |
Name |
Description |
CoapExchange |
exchange |
|
Returns
Implements