示例#1
0
        private void SetEndPoint(SessionQuery query, INsiClient nsiClient, EndPointStructure ep, bool clearQuery = false)
        {
            if (ep == null)
            {
                return;
            }

            //Session[Estat.Nsi.Client.Web.ISTATSettings.Session_key_endpoint] = ep;

            ISTATSettings.CurrentEndPoint = ep;

            NSIClientSettings.Instance.SetEndPoint(ISTATSettings.CurrentEndPoint);

            // NSIClientSettings settings = NSIClientSettings.GetSection(System.Configuration.ConfigurationUserLevel.None);
            NSIClientSettings settings = NSIClientSettings.Instance;

            SessionObject.InitializeNSIClient();


            // clear criteria only if was set a data end point
            if (clearQuery)
            {
                if (query != null)
                {
                    query.Clear();
                    query.Reset();
                }
            }
        }