Description of RMConnectCmdletBase.
Inheritance: RMCmdletBase
Ejemplo n.º 1
0
        public static void ConnectRMServer(RMConnectCmdletBase cmdlet)
        {
//            Redmine.Net.Api.RedmineWebClient client =
//                new RedmineWebClient();
//            client.

            string host   = "";
            string apiKey = "";

            var manager = new RedmineManager(host, apiKey);

//            var parameters = new NameValueCollection {{"status_id", "*"}};
//            foreach (var issue in manager.GetObjectList<Issue>(parameters))
//            {
//                Console.WriteLine("#{0}: {1}", issue.Id, issue.Subject);
//            }
//
//            //Create a issue.
//            var newIssue = new Issue { Subject = "test", Project = new IdentifiableName{Id =  1}};
//            manager.CreateObject(newIssue);
        }
Ejemplo n.º 2
0
        public static void ConnectRMServer(RMConnectCmdletBase cmdlet)
        {
//            Redmine.Net.Api.RedmineWebClient client =
//                new RedmineWebClient();
//            client.
                
            string host = "";
            string apiKey = "";

            var manager = new RedmineManager(host, apiKey);

//            var parameters = new NameValueCollection {{"status_id", "*"}};
//            foreach (var issue in manager.GetObjectList<Issue>(parameters))
//            {
//                Console.WriteLine("#{0}: {1}", issue.Id, issue.Subject);
//            }
//
//            //Create a issue.
//            var newIssue = new Issue { Subject = "test", Project = new IdentifiableName{Id =  1}};
//            manager.CreateObject(newIssue);
        }