public Task<bool> ShareFolder (string path, List<Identity> users) { return Task.Run (() => { LocalBox box = DataLayer.Instance.GetSelectedOrDefaultBox (); var explorer = new RemoteExplorer (box); var messages = AddKeys (path, users, users.Select (e => e).ToList ()); foreach (var message in messages) { var r = explorer.AddAesKey (path, message); } return explorer.ShareFolder (path, users); }); }