First pass of the updater working. #29

This commit is contained in:
tidusjar 2016-05-19 09:11:54 +01:00
commit 030c013862
8 changed files with 270 additions and 121 deletions

View file

@ -420,6 +420,10 @@
<Project>{92433867-2B7B-477B-A566-96C382427525}</Project>
<Name>PlexRequests.Store</Name>
</ProjectReference>
<ProjectReference Include="..\PlexRequests.Updater\PlexRequests.Updater.csproj">
<Project>{ebe6fc1c-7b4b-47e9-af54-0ee0604a2be5}</Project>
<Name>PlexRequests.Updater</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Content\search.js">

View file

@ -61,6 +61,9 @@ namespace PlexRequests.UI
x => x.Port,
e => -1);
var updated = result.MapResult(x => x.Updated, e => false);
//TODO
PrintToConsole("Starting Up! Please wait, this can usually take a few seconds.", ConsoleColor.Yellow);
Log.Trace("Getting product version");

View file

@ -24,7 +24,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Text;
using CommandLine;
@ -51,6 +50,14 @@ namespace PlexRequests.UI.Start
public int Port { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this <see cref="StartupOptions"/> is updated.
/// </summary>
/// <value>
/// <c>true</c> if updated; otherwise, <c>false</c>.
/// </value>
[Option('u', "updated", Required = false, HelpText = "This should only be used by the internal application")]
public bool Updated { get; set; }
}
}