Beispiel #1
0
        public IResult <string> Get()
        {
            var s = DiHelper.CreateInstance <SomeoneClass>();

            var x = DiHelper.GetService <IStudentServic>();

            return(this.Success(someone.SomeoneMethod() + s.SomeoneMethod() + x.GetStudent2().Result.StudentName));
        }
Beispiel #2
0
 public JobWrapper()
 {
     logger = DiHelper.GetService <ILoggerFactory>().CreateLogger(typeof(T));
     job    = DiHelper.CreateInstance <T>();
 }