Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using statements #113

Merged
merged 3 commits into from
Jan 31, 2023
Merged

Using statements #113

merged 3 commits into from
Jan 31, 2023

Conversation

sungam3r
Copy link
Owner

No description provided.

@github-actions github-actions bot added the tests Pull request that adds new or changes existing tests label Jan 31, 2023

var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();
var cts1 = new CancellationTokenSource();

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'CancellationTokenSource' is created but not disposed.
var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();
var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'CancellationTokenSource' is created but not disposed.

var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();
var cts1 = new CancellationTokenSource();

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'CancellationTokenSource' is created but not disposed.
var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();
var cts1 = new CancellationTokenSource();
var cts2 = new CancellationTokenSource();

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'CancellationTokenSource' is created but not disposed.
using var provider = ServicesBuilder.BuildDefault(addScopeProvider: false).BuildServiceProvider(validateScopes: true);
using var scope = provider.CreateScope();
var controller = scope.ServiceProvider.GetService<Controller>()!;
var service = controller.ScopedFunc();

Check warning

Code scanning / CodeQL

Useless assignment to local variable

This assignment to [service](1) is useless, since its value is never read.
@sungam3r sungam3r merged commit c269bf8 into master Jan 31, 2023
@sungam3r sungam3r deleted the test branch January 31, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Pull request that adds new or changes existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant