public sealed override void Execute() { base.Execute(); //ensure file selected if ((_shareDefinitionFile = _shareDefinitionFile ?? SelectOpenFile("Share Definition|*.sd")) == null) { return; } var json = File.ReadAllText(_shareDefinitionFile.FullName); var shareManager = new ShareManager(Activator.RepositoryLocator); List <ShareDefinition> shareDefinitions = shareManager.GetShareDefinitionList(json); ExecuteImpl(shareManager, shareDefinitions); }