Skip to content

Conversation

JSkimming
Copy link
Owner

The generated code is currently static methods and static fields. This makes caching the generated assembly unstable, (as there's a race condition to set the static fields).

By generating a class this is instantiated, the fields can be changed to instance fields rather than static fields, and can be initialised on a per instance basis.

Closes #10 (as it negates it).

@JSkimming JSkimming self-assigned this May 3, 2017
@codecov-io
Copy link

codecov-io commented May 3, 2017

Codecov Report

Merging #22 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #22   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          42     42           
  Lines        1078   1093   +15     
  Branches      205    204    -1     
=====================================
+ Hits         1078   1093   +15
Impacted Files Coverage Δ
src/Abioc/Registration/RegistrationBase.cs 100% <ø> (ø) ⬆️
src/Abioc/Composition/CodeGen.cs 100% <ø> (ø) ⬆️
src/Abioc/Composition/CodeComposition.cs 100% <100%> (ø) ⬆️
src/Abioc/Composition/CompositionContext.cs 100% <100%> (ø) ⬆️
...Composition/Compositions/ConstructorComposition.cs 100% <100%> (ø) ⬆️
src/Abioc/Compilation/CodeCompilation.cs 100% <100%> (ø) ⬆️
src/Abioc/Compilation/AbiocContainerExtensions.cs 100% <100%> (ø) ⬆️
src/Abioc/AbiocContainer.WithContext.cs 100% <100%> (ø) ⬆️
src/Abioc/Composition/RegistrationComposition.cs 100% <100%> (ø) ⬆️
src/Abioc/AbiocContainer.cs 100% <100%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c0d582...f3a67f3. Read the comment docs.

@JSkimming JSkimming force-pushed the remove-static-fields branch from 930cd27 to f3a67f3 Compare May 3, 2017 18:08
@JSkimming JSkimming merged commit 30b8950 into master May 3, 2017
@JSkimming JSkimming deleted the remove-static-fields branch May 3, 2017 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants