コード例 #1
0
 public virtual global::Microsoft.Ccr.Core.Choice Subscribe(global::Microsoft.Ccr.Core.IPort notificationPort, out global::Microsoft.Robotics.ReferencePlatform.MarkRobot.Proxy.Subscribe operation, params System.Type[] types)
 {
     global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType body = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
     operation = new global::Microsoft.Robotics.ReferencePlatform.MarkRobot.Proxy.Subscribe(body);
     operation.NotificationPort = notificationPort;
     if ((types != null))
     {
         body.TypeFilter = new string[types.Length];
         for (int index = 0; (index < types.Length); index = (index + 1))
         {
             body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
         }
     }
     this.Post(operation);
     return(operation.ResponsePort);
 }
 public virtual global::Microsoft.Dss.ServiceModel.Dssp.DsspResponsePort <global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType> ReliableSubscribe(global::Microsoft.Dss.ServiceModel.Dssp.ReliableSubscribeRequestType body, global::Microsoft.Ccr.Core.IPort notificationPort, params System.Type[] types)
 {
     if ((body == null))
     {
         body = new global::Microsoft.Dss.ServiceModel.Dssp.ReliableSubscribeRequestType();
     }
     global::Microsoft.Robotics.Services.Simulation.Sensors.GPSSensor.Proxy.ReliableSubscribe operation = new global::Microsoft.Robotics.Services.Simulation.Sensors.GPSSensor.Proxy.ReliableSubscribe(body);
     operation.NotificationPort = notificationPort;
     if ((types != null))
     {
         body.TypeFilter = new string[types.Length];
         for (int index = 0; (index < types.Length); index = (index + 1))
         {
             body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
         }
     }
     this.Post(operation);
     return(operation.ResponsePort);
 }
コード例 #3
0
 public virtual global::Microsoft.Ccr.Core.PortSet <global::Microsoft.Dss.ServiceModel.Dssp.SubscribeResponseType, global:: W3C.Soap.Fault> Subscribe(global::Microsoft.Ccr.Core.IPort notificationPort, params System.Type[] types)
 {
     global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType       body      = new global::Microsoft.Dss.ServiceModel.Dssp.SubscribeRequestType();
     global::Microsoft.Robotics.Services.RobotDashboard.Proxy.Subscribe operation = new global::Microsoft.Robotics.Services.RobotDashboard.Proxy.Subscribe(body);
     operation.NotificationPort = notificationPort;
     if ((types != null))
     {
         body.TypeFilter = new string[types.Length];
         for (int index = 0; (index < types.Length); index = (index + 1))
         {
             body.TypeFilter[index] = global::Microsoft.Dss.ServiceModel.DsspServiceBase.DsspServiceBase.GetTypeFilterDescription(types[index]);
         }
     }
     this.Post(operation);
     return(operation.ResponsePort);
 }