Skip to content

Commit

Permalink
refactor: simplify implementations of IArgumentTypeProvider when poss…
Browse files Browse the repository at this point in the history
…ible
  • Loading branch information
elementh committed Aug 21, 2024
1 parent f868fcb commit 7226650
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ namespace Navigator.Strategy.TypeProvider;

internal sealed record TelegramEntitiesTypeProvider : IArgumentTypeProvider
{
private readonly IServiceProvider _serviceProvider;

public TelegramEntitiesTypeProvider(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
}

/// <inheritdoc />
public ushort Priority { get; } = 10000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ namespace Navigator.Strategy.TypeProvider;

internal sealed record TelegramMessageTypeProvider : IArgumentTypeProvider
{
private readonly IServiceProvider _serviceProvider;

public TelegramMessageTypeProvider(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
}

/// <inheritdoc />
public ushort Priority => 10000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ namespace Navigator.Strategy.TypeProvider;

internal sealed record TelegramUpdateTypeProvider : IArgumentTypeProvider
{
private readonly IServiceProvider _serviceProvider;

public TelegramUpdateTypeProvider(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
}

/// <inheritdoc />
public ushort Priority => 10000;

Expand Down

0 comments on commit 7226650

Please sign in to comment.