Esempio n. 1
0
        public override void Test()
        {
            OpenDMS.ClientLibrary.Client client;
            Api.Requests.Authentication auth;

            Clear();

            WriteLine("Starting Authentication test...");

            auth = new Api.Requests.Authentication();
            auth.Username = Username;
            auth.ClearTextPassword = Password;

            //client = new OpenDMS.ClientLibrary.Client(auth);
            //_start = DateTime.Now;
            //client.Execute(new OpenDMS.ClientLibrary.ClientArgs()
            //{
            //    Uri = new Uri("http://" + FrmMain.HOST + ":" + FrmMain.PORT.ToString() + "/_auth"),
            //    ContentType = "application/json",
            //    OnClose = OnClose,
            //    OnComplete = OnComplete,
            //    OnError = OnError,
            //    OnProgress = OnProgress,
            //    OnTimeout = OnTimeout,
            //    SendTimeout = FrmMain.SendTimeout,
            //    ReceiveTimeout = FrmMain.ReceiveTimeout,
            //    SendBufferSize = FrmMain.SendBufferSize,
            //    ReceiveBufferSize = FrmMain.ReceiveBufferSize,
            //});
        }
        public override void Test()
        {
            OpenDMS.ClientLibrary.Client client;
            Api.Requests.Authentication  auth;

            Clear();

            WriteLine("Starting Authentication test...");

            auth                   = new Api.Requests.Authentication();
            auth.Username          = Username;
            auth.ClearTextPassword = Password;

            //client = new OpenDMS.ClientLibrary.Client(auth);
            //_start = DateTime.Now;
            //client.Execute(new OpenDMS.ClientLibrary.ClientArgs()
            //{
            //    Uri = new Uri("http://" + FrmMain.HOST + ":" + FrmMain.PORT.ToString() + "/_auth"),
            //    ContentType = "application/json",
            //    OnClose = OnClose,
            //    OnComplete = OnComplete,
            //    OnError = OnError,
            //    OnProgress = OnProgress,
            //    OnTimeout = OnTimeout,
            //    SendTimeout = FrmMain.SendTimeout,
            //    ReceiveTimeout = FrmMain.ReceiveTimeout,
            //    SendBufferSize = FrmMain.SendBufferSize,
            //    ReceiveBufferSize = FrmMain.ReceiveBufferSize,
            //});
        }