internal ConnectionWrapper(string ConnectionString, ConnectionsFactory connectionPoolManager) { this.connectionPoolManager = connectionPoolManager; this.Connection = new NpgsqlConnection(ConnectionString); this.Connection.Disposed += Connection_Disposed1; CreationTime = DateTime.UtcNow;//Guid.NewGuid(); }
//private readonly ChannelWriter<NotiModel> notificationReciever; public NotificationReciever(ConnectionsFactory connectionsFactory, RabbitMQBasePublisher rabbitMQBase) { this.connectionsFactory = connectionsFactory; this.rabbitMQBase = rabbitMQBase; }
public SearchProvider(ConnectionsFactory connectionPoolManager, ISearchResultReciever searchResultReciever) { this.connectionPoolManager = connectionPoolManager; this.searchResultReciever = searchResultReciever; }