Ejemplo n.º 1
0
        public UAFConnector(string username, string password)
        {
            var tokenManager = new TokenManager(username, password, "", Environment.MachineName);
            var token        = tokenManager.GetToken();

            LeanFactory.Initialize("USER_APPLICATION");
            //_serviceEvent = new ServiceEventGateway();
            _leanPlatform = LeanFactory.Create();
            _leanPlatform.SetAuthenticationToken(token);
            //Impersonate(username, password);
        }