protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); SystemLauncher.Initialize(); }
private async void ThirdPartyItemTapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e) { var item = sender as FrameworkElement; if (item != null) { var linkString = (string)item.Tag; await SystemLauncher.LaunchUriAsync(new Uri(linkString, UriKind.Absolute)); } }
/// <summary>The main.</summary> /// <param name="args">The args.</param> /// <returns>The <see cref="int"/>.</returns> private static int Main(string[] args) { Log.Logger = new LoggerConfiguration() .WriteTo.LiterateConsole() .CreateLogger(); var assembly = Assembly.GetExecutingAssembly(); var version = AssemblyName.GetAssemblyName(assembly.Location).Version.ToString(); Log.Logger.Information($"Current version: {version}"); Log.Logger.Information("Starting LDNA DEMO."); // we need to have 2 elements in array as a parameters // input and output file if (args.Length != 2) { Log.Logger.Information("Usage: Profesor79.Merge.Consoler <input_file> <output_file>"); Log.Logger.Information("Example: Profesor79.Merge.Consoler \"name with spaces\" noSpacesHere"); Log.Logger.Information("Stopping LDNA DEMO."); Log.Logger.Information("Stopped LDNA DEMO."); return(-1); } #if DEBUG Console.WriteLine("Debug session starting"); #endif var system = new SystemLauncher(); var inputFile = args[0]; var outputFile = args[1]; // when in debug we use vs commad line parameters // so every execution output file is overwritten // this allow to keep track of history outputFile = $"C:\\dockerExchange\\{DateTime.Now.ToString("O").Replace(":", "_")}_{outputFile}"; CreateHostNameFile(); system.Start(inputFile, outputFile); #if DEBUG Console.WriteLine("Debug LDNA DEMO session finshed"); Console.WriteLine("Press enter to close"); Console.ReadLine(); #endif Log.Logger.Information("Stopping LDNA DEMO...."); Log.Logger.Information("Stopped LDNA DEMO."); File.Delete(@"C:\dockerExchange\clusterMaster.txt"); return(0); }
protected void Application_End(object sender, EventArgs e) { SystemLauncher.Uninitialize(); }
private async void ExecuteShowPrivacyInfo() { await SystemLauncher.LaunchUriAsync(new Uri(PrivacyInfoUri)); }