Installer.cs 623 B

123456789101112131415161718192021
  1. using InABox.Server;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace InABox.Rpc
  8. {
  9. public class RpcInstallerHandler : RpcCommandHandler<IRpcServer, RpcInstallerCommand, RpcInstallerParameters, RpcInstallerResult>
  10. {
  11. public RpcInstallerHandler(IRpcServer sender) : base(sender)
  12. {
  13. }
  14. protected override RpcInstallerResult Execute(IRpcSession session, RpcInstallerParameters parameters)
  15. {
  16. return new RpcInstallerResult { Installer = UpdateData.GetUpdateInstaller() };
  17. }
  18. }
  19. }