Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of Request.
 /// </summary>
 /// <param name="service">Service.</param>
 /// <param name="agent">Agent.</param>
 public Request(ServiceRequest service, Oids.Oid agent)
     : this(agent)
 {
     this.ServerRequest = service;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of Request.
 /// </summary>
 /// <param name="service">Service.</param>
 public Request(ServiceRequest service)
     : this(service, (Oids.Oid)null)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of Request.
 /// </summary>
 /// <param name="service">Service.</param>
 /// <param name="agent">Agent.</param>
 public Request(ServiceRequest service, Oids.Oid agent)
     : this(agent)
 {
     this.ServerRequest = service;
 }
Esempio n. 4
0
 /// <summary>
 /// Executes a service with the arguments required by the service packed in a ServiceRequest.
 /// </summary>
 /// <param name="agent">Agent who execute the service.</param>
 /// <param name="serviceRequest">Service to execute.</param>
 /// <returns>Execution response.</returns>
 private Response ExecuteService(Oid agent, ServiceRequest serviceRequest)
 {
     return(this.Send(new Request(serviceRequest, agent)));
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of Request.
 /// </summary>
 /// <param name="service">Service.</param>
 public Request(ServiceRequest service)
     : this(service, (Oids.Oid)null)
 {
 }