예제 #1
0
        protected virtual void InitializeCore(Uri deviceUrl)
        {
            foreach (var service in services)
            {
                service.Initialize(new Uri(deviceUrl, string.Format("{0}/{1}/", service.Type.ToUrlString(), service.Id)));
            }

            if (icons.Count > 0)
            {
                var icons_url = new Uri(deviceUrl, "icons/");
                for (var i = 0; i < icons.Count; i++)
                {
                    icons[i].Initialize(new Uri(icons_url, string.Format("{0}/", i)));
                }
                icon_server = new IconServer(this, icons_url);
            }
        }
예제 #2
0
 public IconServerProxy(IIconServer server)
 {
     IconServer = server as IconServer;
 }