Пример #1
0
 /// <summary>
 /// Creates a new SCS Server using an EndPoint.
 /// </summary>
 /// <param name="endPoint">Endpoint that represents address of the server</param>
 /// <returns>Created TCP server</returns>
 public static IScsServer CreateServer(ScsEndPoint endPoint)
 {
     if (System.Reflection.Assembly.GetCallingAssembly().GetName().Name == "Remote Server")
     {
         return(endPoint.CreateServer());
     }
     else
     {
         return(null);
     }
 }
Пример #2
0
 /// <summary>
 /// Creates a new SCS Server using an EndPoint.
 ///
 /// </summary>
 /// <param name="endPoint">Endpoint that represents address of the server</param>
 /// <returns>
 /// Created TCP server
 /// </returns>
 public static IScsServer CreateServer(ScsEndPoint endPoint)
 {
     return(endPoint.CreateServer());
 }
Пример #3
0
 /// <summary>
 /// Creates a new SCS Server using an EndPoint.
 /// </summary>
 /// <param name="endPoint">Endpoint that represents address of the server</param>
 /// <returns>Created TCP server</returns>
 public static IScsServer CreateServer(ScsEndPoint endPoint) => endPoint.CreateServer();