예제 #1
0
        public QueueSender(DocumentsAPIConfiguration documentsAPIConfiguration)
        {
            var configurationJSON = $"{{\"AMQPUri\": \"{documentsAPIConfiguration.QueueURI}\", \"ManagementUri\": \"{documentsAPIConfiguration.QueueManagementURI}\"}}";
            var driverTypeName    = "Documents.Queues.RabbitMQ.Driver.MessageQueue, Documents.Queues.RabbitMQ.Driver";

            Context = QueueConnectionPool.GetContext(configurationJSON, driverTypeName);
        }
예제 #2
0
 public CallbackController(
     DocumentsAPIConfiguration documentsAPIConfiguration,
     QueueSender queueSender,
     IFileStore fileStore,
     FileContentsService fileContentsService,
     ISecurityContext securityContext
     ) : base(securityContext)
 {
     this.DocumentsAPIConfiguration = documentsAPIConfiguration;
     this.QueueSender         = queueSender;
     this.FileStore           = fileStore;
     this.FileContentsService = fileContentsService;
     this.SecurityContext     = securityContext;
 }
예제 #3
0
 public EventSender(
     ISecurityContext securityContext,
     ILogger <EventSender> logger,
     IAuditLogEntryStore auditLogEntryStore,
     IHttpContextAccessor httpContextAccessor,
     DocumentsAPIConfiguration documentsAPIConfiguration
     )
 {
     this.SecurityContext     = securityContext;
     this.Logger              = logger;
     this.HttpContextAccessor = httpContextAccessor;
     this.AuditLogEntryStore  = auditLogEntryStore;
     EventSender.DocumentsAPIConfiguration = documentsAPIConfiguration;
 }
예제 #4
0
 public JWT(DocumentsAPIConfiguration documentsAPIConfiguration)
 {
     this.DocumentsAPIConfiguration = documentsAPIConfiguration;
 }