public DataRestorationStarter( [NotNull] IRuntimeOptions options, [NotNull] IDatabaseRestoreService databaseRestoreService) { this.options = options; this.databaseRestoreService = databaseRestoreService; }
public WebAppStarter( [NotNull] IRuntimeOptions options, [NotNull] Func <ApiBootstrapper> bootstrapperFactory) { this.options = options; this.bootstrapperFactory = bootstrapperFactory; }
public SuggestQueryHandler([NotNull] IRuntimeOptions options) { var node = new Uri(options.TargetServerUrl); var settings = new ConnectionSettings(node) .DefaultIndex("data"); client = new ElasticClient(settings); }
public Program(IApplicationEnvironment app, IRuntimeEnvironment runtime, IRuntimeOptions options) { Configuration = new ConfigurationBuilder() .AddJsonFile(Path.Combine(app.ApplicationBasePath, "config.json")) .AddEnvironmentVariables() .Build(); }
public DesignTimeHostProjectCompiler(IApplicationShutdown shutdown, IFileWatcher watcher, IRuntimeOptions runtimeOptions) { // Using this ctor because it works on mono, this is hard coded to ipv4 // right now. Mono will eventually have the dualmode overload var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(new IPEndPoint(IPAddress.Loopback, runtimeOptions.CompilationServerPort.Value)); var networkStream = new NetworkStream(socket); _compiler = new DesignTimeHostCompiler(shutdown, watcher, networkStream); }
public Program(IApplicationEnvironment app, IRuntimeEnvironment runtime, IRuntimeOptions options, ILibraryManager libraryManager, IAssemblyLoaderContainer container, IAssemblyLoadContextAccessor accessor) { Console.WriteLine("ApplicationName: {0} {1}", app.ApplicationName, app.Version); Console.WriteLine("ApplicationBasePath: {0}", app.ApplicationBasePath); Console.WriteLine("Framework: {0}", app.RuntimeFramework.FullName); Console.WriteLine("Runtime: {0} {1} {2}", runtime.RuntimeType, runtime.RuntimeArchitecture, runtime.RuntimeVersion); Console.WriteLine("System: {0} {1}", runtime.OperatingSystem, runtime.OperatingSystemVersion); var names = libraryManager .GetLibraries() .SelectMany(p => p.LoadableAssemblies) .Select(p => p.FullName).ToArray(); var first = names.First(); }
public Program(IRuntimeOptions options) { Options = options; }