Updated factory method documentation

This commit is contained in:
Dávid Kaya
2017-09-10 11:45:00 +02:00
committed by GitHub
parent 872026816d
commit 4af0855dca

View File

@@ -61,10 +61,10 @@ public class Audi : ICar, IFuelConsumer {
## Factory method attributes
If you want to add `Audi` as an implementation of `ICar` using factory method, you can do following
If you want to add `Audi` as an implementation of `ICar` using static factory method, you can do following
```c#
[RegisterTransientFactory(typeof(ICar))]
public Audi CreateAudi(IServiceProvider provider) {
public static Audi CreateAudi(IServiceProvider provider) {
return new Audi();
}
```