Esempio n. 1
0
        private static void OnLauncherButtonClicked(object sender, EventArgs e)
        {
            Button button = sender as Button;
            string name   = button.StyleId;

            Device.BeginInvokeOnMainThread(() => CrossLogger.Current.Debug("Launcher", "Button ID: '" + button.Id.ToString() + "', URL: '" + name + "'"));

            IAppLauncher appLauncher = DependencyService.Get <IAppLauncher>();

            appLauncher.Launch(name);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            IAppLauncher appLauncher = Startup
                                       .ConfigureServices()
                                       .GetService <IAppLauncher>(); //Setup infrastructure


            appLauncher.Launch();                             //Start the process

            Startup.DisposeServices();                        //Release resources

            Console.Read();                                   //Wait to verify results
        }
Esempio n. 3
0
 public AgentSocket(ConfigService configService,
                    Uninstaller uninstaller,
                    CommandExecutor commandExecutor,
                    ScriptRunner scriptRunner,
                    IAppLauncher appLauncher,
                    ChatClientService chatService)
 {
     ConfigService   = configService;
     Uninstaller     = uninstaller;
     CommandExecutor = commandExecutor;
     ScriptRunner    = scriptRunner;
     AppLauncher     = appLauncher;
     ChatService     = chatService;
 }
Esempio n. 4
0
 public AgentSocket(ConfigService configService,
                    Uninstaller uninstaller,
                    ScriptExecutor scriptExecutor,
                    ChatClientService chatService,
                    IAppLauncher appLauncher,
                    IUpdater updater,
                    IDeviceInformationService deviceInfoService)
 {
     _configService     = configService;
     _uninstaller       = uninstaller;
     _scriptExecutor    = scriptExecutor;
     _appLauncher       = appLauncher;
     _chatService       = chatService;
     _updater           = updater;
     _deviceInfoService = deviceInfoService;
 }
Esempio n. 5
0
 public ChatClientService(IAppLauncher appLauncher)
 {
     AppLauncher = appLauncher;
 }
 public ClientConnectionTracker(IAppLauncher appLauncher)
 {
     _appLauncher = appLauncher;
 }
Esempio n. 7
0
 public ChatHostService(IAppLauncher appLauncher)
 {
     AppLauncher = appLauncher;
 }