Exemplo n.º 1
0
 internal RemoteSingleEdge(ServiceSingleEdgeInstance mySvcEdgeInstance, IServiceToken myServiceToken) : base(mySvcEdgeInstance, myServiceToken)
 {
     _EdgeTypeID = mySvcEdgeInstance.TypeID;
     _EdgePropertyID = mySvcEdgeInstance.EdgePropertyID;
     _SourceVertex = new RemoteVertex(mySvcEdgeInstance.SourceVertex, _ServiceToken);
     _TargetVertex = new RemoteVertex(mySvcEdgeInstance.TargetVertex, _ServiceToken);
 }
Exemplo n.º 2
0
 internal static ServiceEdgeInstance ToServiceEdgeInstance(IEdge myEdge)
 {
     ServiceEdgeInstance svcEdge;
     if (myEdge is ISingleEdge)
     {
         svcEdge = new ServiceSingleEdgeInstance((ISingleEdge)myEdge);
     }
     else
     {
         svcEdge = new ServiceHyperEdgeInstance((IHyperEdge)myEdge);
     }
     return svcEdge;
 }