Ejemplo n.º 1
0
        public Program(CmdOptions options)
        {
            string json = System.IO.File.ReadAllText(options.ActionFile);

            actions = JsonConvert.DeserializeObject <List <Dictionary <string, object> > >(json);

            auth = new Auth(options.WebApplicationUrl, Util.isSharepointOnline(options.WebApplicationUrl), options.Domain, options.Username, options.Password, "NTLM");
        }
Ejemplo n.º 2
0
        //Overloaded main, called with CmdOptions from main(string[])
        static void Main(CmdOptions options)
        {
            Program program = new Program(options);

            program.exec();
        }