示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebrtcManager"/> class.
 /// </summary>
 /// <param name="inputDeviceId">The id of the input device.</param>
 /// <param name="outputDeviceId">The id of the output device.</param>
 public WebrtcManager()
 {
     manager = new Webrtc.WebrtcManager();
     manager.IpAndPortObtained += (ip, port) => IpAndPortObtained.Invoke(this, new Tuple <string, ushort>(ip, port));
     manager.AudioInData       += (sender, data) => AudioInData?.Invoke(sender, data);
     manager.AudioOutData      += (sender, data) => AudioOutData?.Invoke(sender, data);
     manager.Speaking          += (sender, data) => Speaking?.Invoke(sender, data);
 }
示例#2
0
文件: User.cs 项目: mcepil/MyWpfApp
 public void Speak()
 {
     //null-conditional operator
     Speaking?.Invoke(this, new EventArgs());
 }