コード例 #1
0
ファイル: UpdateService.cs プロジェクト: dimzy/RiotControl
        public UpdateService(Configuration configuration, IGlobalHandler globalHandler, IUpdateHandler updateHandler = null)
        {
            Configuration = configuration.Updates;

            GlobalHandler = globalHandler;
            UpdateHandler = updateHandler;

            IsCommandLineVersion = UpdateHandler == null;
            IsMono = Type.GetType("Mono.Runtime") != null;

            CurrentRevision = Assembly.GetEntryAssembly().GetName().Version.Revision;
            NewestVersion = null;
        }
コード例 #2
0
ファイル: UpdateService.cs プロジェクト: worm929/RiotControl
        public UpdateService(Configuration configuration, IGlobalHandler globalHandler, IUpdateHandler updateHandler = null)
        {
            Configuration = configuration.Updates;

            GlobalHandler = globalHandler;
            UpdateHandler = updateHandler;

            IsCommandLineVersion = UpdateHandler == null;
            IsMono = Type.GetType("Mono.Runtime") != null;

            CurrentRevision = Assembly.GetEntryAssembly().GetName().Version.Revision;
            NewestVersion   = null;
        }