// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc(); services.AddSwagger(); var keyspace = "testbed"; IAffDataset dataset = null; // new AffDataset(new IPEndPoint(IPAddress.Loopback, 9042), keyspace); dataset.Connect(); services.AddSingleton <IAffDataset>(dataset); services.AddSingleton <ISession>(dataset.Session); }
public DnsController(IAffDataset dataset) { m_dataset = dataset; }
public HostsController(IAffDataset dataset) { m_dataset = dataset; }
public FlowsController(IAffDataset dataset) { m_dataset = dataset; }
public CapturesController(IAffDataset dataset) { m_dataset = dataset; }
public ServicesController(IAffDataset dataset) { m_dataset = dataset; }
public HttpController(IAffDataset dataset) { m_dataset = dataset; }