2using System.Collections.Generic;
14 private UPnPAction actionRegisterDevice =
null;
22 this.service = Service;
30 Dictionary<string, object> OutputValues =
new Dictionary<string, object>();
32 if (actionIsAuthorized is
null)
33 actionIsAuthorized = this.service.
GetAction(
"IsAuthorized");
35 this.actionIsAuthorized.
Invoke(out OutputValues,
36 new KeyValuePair<string, object>(
"DeviceID", DeviceID));
38 Result = (long)OutputValues[
"Result"];
44 public void RegisterDevice(
byte[] RegistrationReqMsg, out
byte[] RegistrationRespMsg)
46 Dictionary<string, object> OutputValues =
new Dictionary<string, object>();
48 if (actionRegisterDevice is
null)
49 actionRegisterDevice = this.service.
GetAction(
"RegisterDevice");
51 this.actionRegisterDevice.
Invoke(out OutputValues,
52 new KeyValuePair<string, object>(
"RegistrationReqMsg", RegistrationReqMsg));
54 RegistrationRespMsg = (
byte[])OutputValues[
"RegistrationRespMsg"];
62 Dictionary<string, object> OutputValues =
new Dictionary<string, object>();
64 if (actionIsValidated is
null)
65 actionIsValidated = this.service.
GetAction(
"IsValidated");
67 this.actionIsValidated.
Invoke(out OutputValues,
68 new KeyValuePair<string, object>(
"DeviceID", DeviceID));
70 Result = (long)OutputValues[
"Result"];
Contains the information provided in a Service Description Document, downloaded from a service in the...
UPnPAction GetAction(string Name)
Gets an action, given its name. If not found, null is returned.
Contains information about an action.
object Invoke(out Dictionary< string, object > OutputValues, params KeyValuePair< string, object >[] InputValues)
Invokes the action.