示例#1
0
 public AsyncFactory(IDependency x, IDependency2 y)
 {
     CreateAsync = async() =>
                   new AppModel(x.CalculateA(await y.CalculateB()));
 }
示例#2
0
 public AsyncFactory(IDependency x, IDependency2 y) : base(async() =>
                                                           new AppModel(x.CalculateA(await y.CalculateB())))
 {
 }