Skip to content

Commit

Permalink
Rename TimeBasedShortCodeGeneratro into HashBased
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadKarimi committed Jan 14, 2024
1 parent d88bcf0 commit 826c348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace SwiftLink.Application.Common;

public class TimeBasedShortCodeGenerator : IShortCodeGenerator
public class HashBasedShortCodeGenerator : IShortCodeGenerator
{
private static readonly object _lockObject = new();
private static readonly Random _random = new();
Expand Down
2 changes: 1 addition & 1 deletion src/SwiftLink.Application/ConfigServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static IServiceCollection RegisterApplicationServices(this IServiceCollec
config.AddBehavior(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>));
});

services.AddScoped<IShortCodeGenerator, TimeBasedShortCodeGenerator>();
services.AddScoped<IShortCodeGenerator, HashBasedShortCodeGenerator>();
return services;
}
}

0 comments on commit 826c348

Please sign in to comment.