Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Aug 29, 2024
1 parent d0fce13 commit 21e1c5b
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 30 deletions.
3 changes: 1 addition & 2 deletions readme/FuncDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ partial class Func
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public partial CompositionRoot TestPureDIByCR()
{
var perBlockFunc10 = default(Func<IService3>);
perBlockFunc10 = new Func<IService3>(
Func<IService3> perBlockFunc10 = new Func<IService3>(
[MethodImpl(MethodImplOptions.AggressiveInlining)]
() =>
{
Expand Down
3 changes: 1 addition & 2 deletions readme/async-disposable-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ partial class Composition: IDisposable, IAsyncDisposable
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc1 = default(Func<Session>);
perBlockFunc1 = new Func<Session>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<Session> perBlockFunc1 = new Func<Session>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
Composition transientComposition3 = this;
Session localValue63 = new Session(transientComposition3);
Expand Down
3 changes: 1 addition & 2 deletions readme/async-root.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ partial class Composition
TaskContinuationOptions localTaskContinuationOptions19 = transientTaskContinuationOptions4;
TaskScheduler localTaskScheduler20 = transientTaskScheduler5;
perBlockTaskFactory2 = new TaskFactory<IService>(localCancellationToken17, localTaskCreationOptions18, localTaskContinuationOptions19, localTaskScheduler20);
var perBlockFunc1 = default(Func<IService>);
perBlockFunc1 = new Func<IService>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IService> perBlockFunc1 = new Func<IService>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IService localValue21 = new Service(new Dependency());
return localValue21;
Expand Down
3 changes: 1 addition & 2 deletions readme/auto-scoped.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc1 = default(Func<IService>);
perBlockFunc1 = new Func<IService>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IService> perBlockFunc1 = new Func<IService>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
Composition transientComposition3 = this;
IService transientIService2;
Expand Down
3 changes: 1 addition & 2 deletions readme/func-with-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var transientFunc1 = default(Func<int, int, IDependency>);
transientFunc1 =
Func<int, int, IDependency> transientFunc1 =
[MethodImpl(MethodImplOptions.AggressiveInlining)]
(dependencyId, subId) =>
{
Expand Down
3 changes: 1 addition & 2 deletions readme/func-with-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc1 = default(Func<IDependency>);
perBlockFunc1 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IDependency> perBlockFunc1 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue32 = new Dependency();
return localValue32;
Expand Down
3 changes: 1 addition & 2 deletions readme/func.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc1 = default(Func<IDependency>);
perBlockFunc1 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IDependency> perBlockFunc1 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue30 = new Dependency();
return localValue30;
Expand Down
6 changes: 2 additions & 4 deletions readme/generic-async-composition-roots-with-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ partial class Composition
TaskContinuationOptions localTaskContinuationOptions48 = transientTaskContinuationOptions4;
TaskScheduler localTaskScheduler49 = transientTaskScheduler5;
perBlockTaskFactory2 = new TaskFactory<IService<T, bool>>(localCancellationToken46, localTaskCreationOptions47, localTaskContinuationOptions48, localTaskScheduler49);
var perBlockFunc1 = default(Func<IService<T, bool>>);
perBlockFunc1 = new Func<IService<T, bool>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IService<T, bool>> perBlockFunc1 = new Func<IService<T, bool>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
OtherService<T> transientOtherService6;
IDependency<T> localDependency51 = new Dependency<T>();
Expand Down Expand Up @@ -123,8 +122,7 @@ partial class Composition
TaskContinuationOptions localTaskContinuationOptions56 = transientTaskContinuationOptions4;
TaskScheduler localTaskScheduler57 = transientTaskScheduler5;
perBlockTaskFactory2 = new TaskFactory<IService<T, T1>>(localCancellationToken54, localTaskCreationOptions55, localTaskContinuationOptions56, localTaskScheduler57);
var perBlockFunc1 = default(Func<IService<T, T1>>);
perBlockFunc1 = new Func<IService<T, T1>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IService<T, T1>> perBlockFunc1 = new Func<IService<T, T1>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IService<T, T1> localValue58 = new Service<T, T1>(new Dependency<T>());
return localValue58;
Expand Down
3 changes: 1 addition & 2 deletions readme/lazy.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc2 = default(Func<IDependency>);
perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IDependency> perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue33 = new Dependency();
return localValue33;
Expand Down
3 changes: 1 addition & 2 deletions readme/manually-started-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ partial class Composition
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public IService GetRoot(CancellationToken cancellationToken)
{
var perBlockFunc2 = default(Func<IDependency>);
perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IDependency> perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue35 = new Dependency();
return localValue35;
Expand Down
3 changes: 1 addition & 2 deletions readme/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ partial class Composition: IDisposable
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
var perBlockFunc1 = default(Func<Session>);
perBlockFunc1 = new Func<Session>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<Session> perBlockFunc1 = new Func<Session>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
Composition transientComposition3 = this;
Session localValue67 = new Session(transientComposition3);
Expand Down
3 changes: 1 addition & 2 deletions readme/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ partial class Composition
TaskContinuationOptions localTaskContinuationOptions40 = transientTaskContinuationOptions5;
TaskScheduler localTaskScheduler41 = transientTaskScheduler6;
perBlockTaskFactory3 = new TaskFactory<IDependency>(localCancellationToken38, localTaskCreationOptions39, localTaskContinuationOptions40, localTaskScheduler41);
var perBlockFunc2 = default(Func<IDependency>);
perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<IDependency> perBlockFunc2 = new Func<IDependency>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
IDependency localValue42 = new Dependency();
return localValue42;
Expand Down
3 changes: 1 addition & 2 deletions readme/tracking-async-disposable-instances-in-delegates.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ partial class Composition
get
{
var accumulator41 = new Owned();
var perBlockFunc1 = default(Func<Owned<IDependency>>);
perBlockFunc1 = new Func<Owned<IDependency>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<Owned<IDependency>> perBlockFunc1 = new Func<Owned<IDependency>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
var accumulator41 = new Owned();
Dependency transientDependency4 = new Dependency();
Expand Down
3 changes: 1 addition & 2 deletions readme/tracking-disposable-instances-in-delegates.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ partial class Composition
get
{
var accumulator41 = new Owned();
var perBlockFunc1 = default(Func<Owned<IDependency>>);
perBlockFunc1 = new Func<Owned<IDependency>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
Func<Owned<IDependency>> perBlockFunc1 = new Func<Owned<IDependency>>([MethodImpl(MethodImplOptions.AggressiveInlining)] () =>
{
var accumulator41 = new Owned();
Dependency transientDependency4 = new Dependency();
Expand Down

0 comments on commit 21e1c5b

Please sign in to comment.