Skip to content

0.7.0 - Bugfixes + AMQP

Latest
Compare
Choose a tag to compare
@DeeJayTC DeeJayTC released this 25 Jul 20:37

New features:

TCDev.APIGenerator.RabbitMQ

Direct integration with RabbitMQ (Azure Service Bus should work but untested!)

dotnet add package TCDev.ApiGenerator.RabitMQ --prerelease
    
    builder.Services.AddApiGeneratorServices()
                .AddAssembly(Assembly.GetExecutingAssembly())
                .AddDataContextSQL()
                .AddOData()
                .AddRabbitMQ()<--- Add This
                .AddSwagger(true);
    

New Attribute "Event" to configure RMQ behaviour, see screenshot:

image

TCDev.APIGenerator.Redis

Direct integration with Redis (self-hosted or Azure)
Can be configured using a new attribute (JSON soon)

dotnet add package TCDev.ApiGenerator.Redis--prerelease
    [Api("/minimal")]
    [Cachable("minimal_{0}",60)] // Add Cachable attribute and set cachekey template and time
    public class MinimalSample : IObjectBase<int>
    
    builder.Services.AddApiGeneratorServices()
                .AddAssembly(Assembly.GetExecutingAssembly())
                .AddDataContextSQL()
                .AddOData()
                .AddRedisCache() <--- Add This
                .AddRabbitMQ()
                .AddSwagger(true);
    

Bugfixes and Improvements

  • Can now set "ConnectionStringName" instead of just connection. If ConnectionStringName is set the APIGen is using the connection string in the named "ConnectionString" section of AppSettings. This helps to improve AzureKeyVault support.
  • Various smaller bugfixes