public IRubyService CreateService(string command_line_string) {
      CommandLine switches = CommandLine.FromString(command_line_string);
      if (switches.HasSwitch(ServiceStrings.kDebugSwitch)) {
        Debugger.Launch();
      }

      IQuerySettings settings = GetSettings();
      QueryServer server = new QueryServer.Builder()
        .SetQuerySettings(settings)
        .Build();
      return new Service(server);
    }
Exemple #2
0
        public IRubyService CreateService(string command_line_string)
        {
            CommandLine switches = CommandLine.FromString(command_line_string);

            if (switches.HasSwitch(ServiceStrings.kDebugSwitch))
            {
                Debugger.Launch();
            }

            IQuerySettings settings = GetSettings();
            QueryServer    server   = new QueryServer.Builder()
                                      .SetQuerySettings(settings)
                                      .Build();

            return(new Service(server));
        }