Exemple #1
0
        public void SetConfiguration(WcfTurnConfiguration configuration)
        {
            ServiceSettings.AdminName = configuration.AdminName;
            ServiceSettings.AdminPass = configuration.AdminPass;
            ServiceSettings.PublicIp = configuration.PublicIp;
            ServiceSettings.TurnUdpPort= configuration.TurnUdpPort;
            ServiceSettings.TurnTcpPort = configuration.TurnTcpPort;
            ServiceSettings.TurnTlsPort = configuration.TurnTlsPort;
            ServiceSettings.MinPort = configuration.MinPort;
            ServiceSettings.MaxPort = configuration.MaxPort;
            ServiceSettings.Realm = configuration.Realm;
            ServiceSettings.Key1 = configuration.Key1;
            ServiceSettings.Key2 = configuration.Key2;

            ServiceSettings.Save();

            if (NewConfigurationSetted != null)
                NewConfigurationSetted(this, new EventArgs());
        }
Exemple #2
0
        public void SetConfiguration(WcfTurnConfiguration configuration)
        {
            ServiceSettings.AdminName   = configuration.AdminName;
            ServiceSettings.AdminPass   = configuration.AdminPass;
            ServiceSettings.PublicIp    = configuration.PublicIp;
            ServiceSettings.TurnUdpPort = configuration.TurnUdpPort;
            ServiceSettings.TurnTcpPort = configuration.TurnTcpPort;
            ServiceSettings.TurnTlsPort = configuration.TurnTlsPort;
            ServiceSettings.MinPort     = configuration.MinPort;
            ServiceSettings.MaxPort     = configuration.MaxPort;
            ServiceSettings.Realm       = configuration.Realm;
            ServiceSettings.Key1        = configuration.Key1;
            ServiceSettings.Key2        = configuration.Key2;

            ServiceSettings.Save();

            if (NewConfigurationSetted != null)
            {
                NewConfigurationSetted(this, new EventArgs());
            }
        }