Beispiel #1
0
 public void Configure(IWebJobsBuilder builder)
 {
     builder.Services.AddScoped <IMessagingGateway, MessagingGateway>(x =>
     {
         var config = x.GetService <IConfiguration>();
         var messagingConnection = new MessagingConnection
         {
             ConnectionString = config["AuditSbConnection"],
             QueueName        = config["AuditSbQueueName"]
         };
         return(new MessagingGateway(messagingConnection));
     });
 }
Beispiel #2
0
 public MessagingHub(MessagingConnection connections) : base(connections)
 {
 }
Beispiel #3
0
 public MessagingHubManager(IHubContext <MessagingHub> hubContext, MessagingConnection connections) : base(hubContext, connections)
 {
 }
 public MessagingGateway(MessagingConnection sbConnection)
 {
     _sbConnection = sbConnection;
 }