Example #1
0
        WcfConfiguration IWcfService.GetConfigurations()
        {
            UpdateCallback();

            var configuration = SipServerConfigurationSection.GetSection();

            var sources = new WcfUsers[userz.Count];

            for (int i = 0; i < userz.Count; i++)
            {
                sources[i] = new WcfUsers(userz[i]);
            }

            return(new WcfConfiguration()
            {
                DomainName = accounts.GetDefaultAccount().DomainName,
                IsAuthorizationEnabled = configuration.IsAuthorizationEnabled,
                IsActiveDirectoryUsersEnabled = configuration.IsActiveDirectoryEnabled,
                ActiveDirectoryUsersGroup = configuration.ActiveDirectoryGroup,
                IsTracingEnabled = configuration.IsTracingEnabled,
                TracingFileName = configuration.TracingPath,
                Users = sources,
            });
        }
Example #2
0
        WcfConfiguration IWcfService.GetConfigurations()
        {
            UpdateCallback();

            var configuration = SipServerConfigurationSection.GetSection();

            var sources = new WcfUsers[userz.Count];
            for (int i = 0; i < userz.Count; i++)
                sources[i] = new WcfUsers(userz[i]);

            return new WcfConfiguration()
            {
                DomainName = accounts.GetDefaultAccount().DomainName,
                IsAuthorizationEnabled = configuration.IsAuthorizationEnabled,
                IsActiveDirectoryUsersEnabled = configuration.IsActiveDirectoryEnabled,
                ActiveDirectoryUsersGroup = configuration.ActiveDirectoryGroup,
                IsTracingEnabled = configuration.IsTracingEnabled,
                TracingFileName = configuration.TracingPath,
                Users = sources,
            };
        }