/// <summary>
 /// Creates the pool object.
 /// </summary>
 /// <returns></returns>
 protected override Task <AMQObjectPoolData> CreatePoolObjectAsync()
 {
     return(Task.FromResult(new AMQObjectPoolData {
         Instance = _factory.Create(_instanceType, _connection, _destination)
     }));
 }
Exemple #2
0
 /// <summary>
 /// Creates the pool object.
 /// </summary>
 /// <returns></returns>
 protected override AMQObjectPoolData CreatePoolObject()
 {
     return(new AMQObjectPoolData {
         Instance = _factory.Create(_instanceType, _connection, _destination)
     });
 }