Ejemplo n.º 1
0
 public void UpdateConnectedSvcType(ThinSvcType type)
 {
     if (this.ConnectedSvcType == null)
     {
         this.ConnectedSvcType = type;
     }
     else if (this.ConnectedSvcType != type)
     {
         throw new CoresLibException("this.ConnectedSvcType is already set.");
     }
 }
Ejemplo n.º 2
0
 public ThinClientConnection(WtcSocket socket, PipeStream stream, ThinSvcType svcType, int svcPort, bool isShareDisabled, ThinServerCaps caps, bool runInspect, string otpTicket, string inspectTicket,
                             string watermarkStr1, string watermarkStr2, ThinClientMiscParams misc)
 {
     Socket          = socket;
     Stream          = stream;
     SvcType         = svcType;
     SvcPort         = svcPort;
     IsShareDisabled = isShareDisabled;
     Caps            = caps;
     RunInspect      = runInspect;
     OtpTicket       = otpTicket;
     InspectTicket   = inspectTicket;
     WatermarkStr1   = watermarkStr1._NonNull();
     WatermarkStr2   = watermarkStr2._NonNull();
     this.Misc       = misc;
 }