public SvnError UsernameAuth(out SvnAuthCredUsername cred, IntPtr baton, AprString realm, bool maySave, AprPool pool) { Console.WriteLine("Username Authentication:"); Console.WriteLine("------------------------"); Console.WriteLine("Realm: {0}", realm); Console.WriteLine(""); bool valid = false; string line = ""; while (!valid) { Console.Write("Enter Username: "); line = Console.ReadLine(); if (line.Trim().Length > 0) { valid = true; } } cred = SvnAuthCredUsername.Alloc(pool); cred.Username = new AprString(line, pool); cred.MaySave = maySave; return(SvnError.NoError); }
private SvnError UsernameAuth(out SvnAuthCredUsername cred, IntPtr baton, AprString realm, bool maySave, AprPool pool) { cred = SvnAuthCredUsername.Alloc(pool); cred.Username = new AprString(this.UserName, pool); cred.MaySave = maySave; return(SvnError.NoError); }