コード例 #1
0
 /// <summary>
 /// See adapter documentation in the Myro 3 developer manual.
 /// http://wiki.roboteducation.org/Myro_3.0_Developer_Manual
 /// </summary>
 public VectorAdapter(ServiceInfoType serviceRecord)
 {
     ServiceInfo = serviceRecord;
     opPort = DssEnvironment.ServiceForwarder<vector.VectorOperations>(new Uri(serviceRecord.Service));
     //if (opPort == null)
     //    throw new AdapterCreationException("Service forwarder port was null");
 }
コード例 #2
0
ファイル: VectorAdapter.cs プロジェクト: yingted/Myro
 public VectorAdapter(ServiceInfoType serviceRecord)
 {
     ServiceInfo = serviceRecord;
     opPort      = DssEnvironment.ServiceForwarder <vector.VectorOperations>(new Uri(serviceRecord.Service));
     //if (opPort == null)
     //    throw new AdapterCreationException("Service forwarder port was null");
 }