Example #1
0
 internal static void SetUrls(string mas, string tas)
 {
     var addressSet = new ServiceAddressSet(mas, tas, null);
     serviceSet = addressSet.Connect(Configuration.WebMediaPortal.ServiceUsername, Configuration.WebMediaPortal.ServicePassword);
 }
Example #2
0
        private static IServiceSet GetServiceSet()
        {
            if (_serviceSet == null)
            {
                var addr = new ServiceAddressSet("127.0.0.1", "127.0.0.1");
                _serviceSet = addr.Connect();
            }

            return _serviceSet;
        }
Example #3
0
 internal static void SetUrls(string mas, string tas)
 {
     var addressSet = new ServiceAddressSet(mas, tas, null);
     serviceSet = addressSet.Connect();
 }