Beispiel #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);
        }
Beispiel #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
        }
Beispiel #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;
 }
 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;
 }
 public ChatClientService(IAppLauncher appLauncher)
 {
     AppLauncher = appLauncher;
 }
 public ClientConnectionTracker(IAppLauncher appLauncher)
 {
     _appLauncher = appLauncher;
 }
Beispiel #7
0
 public ChatHostService(IAppLauncher appLauncher)
 {
     AppLauncher = appLauncher;
 }