public UserSchemaService(IOspService ospService, IOspResourceStore resourceStore, IOspClientStore clientStore, OspCoreServicesOptions ospCoreServicesOptions) { _systemContext = ospService.SystemContext; _resourceStore = resourceStore; _clientStore = clientStore; _ospCoreServicesOptions = ospCoreServicesOptions; }
public GraphQlTenantWebSocketsMiddleware( RequestDelegate next, IOspService ospService, ILogger <GraphQlTenantWebSocketsMiddleware> logger) { _next = next; _ospService = ospService; _logger = logger; }
public TenantWebSocketFactory(ILogger <TenantWebSocketFactory> logger, ILoggerFactory loggerFactory, IGraphQLExecuter <OspSchema> executer, IEnumerable <IOperationMessageListener> messageListeners, IOspService ospService, IDocumentWriter documentWriter) { _logger = logger; _loggerFactory = loggerFactory; _executer = executer; _messageListeners = messageListeners; _ospService = ospService; _documentWriter = documentWriter; }
/// <summary> /// Constructor /// </summary> /// <param name="ospService">The OSP service</param> /// <param name="distributedWithPubSubCache"></param> public SchemaContext(IOspService ospService, IDistributedWithPubSubCache distributedWithPubSubCache) { _ospService = ospService; _cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = 64 }); var sub = distributedWithPubSubCache.Subscribe <string>(CacheCommon.KeyTenantUpdate); sub.OnMessage(message => { _cache.Remove(message.Message.MakeKey()); return(Task.CompletedTask); }); }
public TenantUserContextBuilder(IOspService ospService) { _ospService = ospService; }
public OspMessageListener(IOspService ospService, string tenantId) { _ospService = ospService; _tenantId = tenantId; }
/// <summary> /// Constructor /// </summary> /// <param name="ospService">OSP service for tenant management</param> /// <param name="schemaContext">The Schema service of graph ql</param> public TenantsController(IOspService ospService, ISchemaContext schemaContext) { _ospService = ospService; _schemaContext = schemaContext; }
// ReSharper disable once UnusedParameter.Local public PlaygroundTenantMiddleware(RequestDelegate next, IOspService ospService, PlaygroundOptions options) { _ospService = ospService; _options = options ?? throw new ArgumentNullException(nameof(options)); }