public MainWindow() { MethodTreeModel = new RootViewModel(); InitializeComponent(); selectClient = new SelectClient(); selectClient.Source.Loaded += Source_Loaded; var empty = new EmptyMethodViewModel(); ResultBlock.DataContext = empty; HelpBlock.DataContext = empty; paramview.Source = MethodTreeModel.GlobalParameters; controllersAndCommands.DataContext = MethodTreeModel.Controllers; var conn = new IsopClient(new JsonHttpClient(), ConfigurationManager.AppSettings["server_url"]); InitFromClient(new JsonClient(conn), _ => { var assemblies = new LoadAssemblies().LoadFrom(ExecutionAssembly.Path()).ToArray(); var build = new Build(); foreach (var assembly in assemblies) { build.ConfigurationFrom(assembly); } InitFromClient(new BuildClient(build)); }); }
public IsopServerFromAssemblyLocation() : base(() => GetBuild(Assemblies)) { if (Assemblies == null) { Assemblies = new LoadAssemblies().LoadFrom(ExecutionAssembly.Path()).ToArray(); } }
/// <summary> /// Adds information on the build. /// </summary> public void BuildInfo() { Line(); _logger.Info("Build Information:"); Line(); var customAttributes = ExecutionAssembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); if (customAttributes.Length <= 0) { return; } var description = ((AssemblyDescriptionAttribute)customAttributes.First()).Description; var array = description.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); foreach (var t in array) { _logger.Info(" {0}", t); } }
/// <summary> /// Adds the execution assembly information. /// </summary> public void ExecutionAssemblyInformation() { AssemblyName name = ExecutionAssembly.GetName(); _logger.Info("Starting '{0}' ({1})", SystemInfo.ApplicationFriendlyName, name.Version); }