public PlatformBuilderBase(IAgentStorageFactory <TAgent> agentStorageFactory, IContextStorageFactory <AIContext> contextStorageFactory, IPlatformSettings settings)
 {
     this.agentStorageFactory   = agentStorageFactory;
     this.contextStorageFactory = contextStorageFactory;
     this.settings = settings;
     GetAgentStorage();
 }
Example #2
0
 private static bool IsValid(IContextStorageFactory factory)
 {
     try
     {
         return(factory != null && factory.IsValid);
     }
     catch (Exception)
     {
         // REVIEW maybe log at finest?
         return(false);
     }
 }
 public AsyncCallStackManagerFactory(IContextStorageFactory factory)
 {
     this._storageContext = factory.CreateContext <int?>("NewRelic.ParentObject");
 }
Example #4
0
 public DialogflowAi(IAgentStorageFactory <TAgent> agentStorageFactory, IContextStorageFactory <AIContext> contextStorageFactory, IPlatformSettings settings, IConfiguration config)
     : base(agentStorageFactory, contextStorageFactory, settings)
 {
     this.config = config;
 }
Example #5
0
 public RasaAi(IAgentStorageFactory <TAgent> agentStorageFactory, IContextStorageFactory <AIContext> contextStorageFactory, IPlatformSettings settings)
     : base(agentStorageFactory, contextStorageFactory, settings)
 {
 }
Example #6
0
 public ArticulateAi(IAgentStorageFactory <TAgent> agentStorageFactory, IContextStorageFactory <AIContext> contextStorageFactory, IPlatformSettings settings, IConfiguration config)
     : base(agentStorageFactory, contextStorageFactory, settings)
 {
 }