예제 #1
0
        public HLinkSearchBox(Func <SessionData, string, IEnumerable <Tuple <string, string> > > responseFunction, string responseUrl = null, string placeholder = null)
        {
            if (responseUrl == null)
            {
                responseUrl = SessionContainer.GenerateUnusedHash();
            }

            _pageUrl    = responseUrl;
            _func       = responseFunction;
            ContainerID = responseUrl;
            Placeholder = placeholder;

            if (responseUrl != null)
            {
                InstantPageResponse.AddInstantPageResponse(_pageUrl, GetResponse);
            }
        }