/// <summary> /// Create graphic DVC channel. /// </summary> /// <param name="rdpedycServer">RDPEDYC server instance</param> /// <param name="transportType">Transport type</param> /// <param name="channelId">Channel Id</param> /// <returns>True if success; otherwise, return false.</returns> public bool CreateEGFXDvc(RdpedycServer rdpedycServer, DynamicVC_TransportType transportType, uint? channelId = null) { this.egfxServer = new RdpegfxServer(rdpedycServer); bool success = false; try { success = egfxServer.CreateRdpegfxDvc(waitTime, transportType, channelId); } catch (Exception e) { Site.Log.Add(LogEntryKind.Comment, "Exception occurred when creating RDPEGFX channel: {0}.", e.Message); } return success; }
/// <summary> /// Initialize this protocol with create graphic DVC channels. /// </summary> /// <param name="rdpedycServer">RDPEDYC server instance</param> /// <param name="transportType">Transport type</param> /// <returns>True if client supports this protocol; otherwise, return false.</returns> public bool ProtocolInitialize(RdpedycServer rdpedycServer, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP) { if (!rdpedycServer.IsMultipleTransportCreated(transportType)) { rdpedycServer.CreateMultipleTransport(transportType); } this.egfxServer = new RdpegfxServer(rdpedycServer); bool success = false; try { success = egfxServer.CreateRdpegfxDvc(waitTime, transportType); } catch (Exception e) { Site.Log.Add(LogEntryKind.Comment, "Exception occurred when creating RDPEGFX channel: {0}.", e.Message); } return success; }