Beispiel #1
0
 static MenuHelper()
 {
     //Resolving initialization using the pre-defined dependancy
     //dependencyResolver = S.DependencyResolver;//.GetService(typeof(ICustomAuthenticationService)) as ICustomAuthenticationService;
     _tokenManager = DependencyResolver.Current.GetService <ITokenManager>();                                         //dependencyResolver.GetService(typeof(ITokenManager)) as ITokenManager;
     _spartaneModuleApiConsumer        = DependencyResolver.Current.GetService <ISpartanModuleApiConsumer>();         //dependencyResolver.GetService(typeof(ISpartanModuleApiConsumer)) as ISpartanModuleApiConsumer;
     _spartanUserRoleModuleApiConsumer = DependencyResolver.Current.GetService <ISpartanUserRoleModuleApiConsumer>(); //ISpartanUserRoleModuleApiConsumer.GetService(typeof(ISpartanUserRoleModuleApiConsumer)) as ISpartanUserRoleModuleApiConsumer;
     _userRoleApiConsumer = DependencyResolver.Current.GetService <ISpartan_User_RoleApiConsumer>();                  //v.GetService(typeof(IUserRoleApiConsumer)) as IUserRoleApiConsumer;
     _spartaneUserRoleModuleObjectApiConsumer = DependencyResolver.Current.GetService <ISpartaneUserRoleModuleObjectApiConsumer>();
     _spartaneObjectApiConsumer = DependencyResolver.Current.GetService <ISpartaneObjectApiConsumer>();
     _ISpartane_FileApiConsumer = DependencyResolver.Current.GetService <ISpartaneFileApiConsumer>();
 }
Beispiel #2
0
 public GeneralController(ITokenManager tokenManager, ISpartaneQueryApiConsumer SpartaneQueryApiConsumer, ISpartaneFileApiConsumer SpartaneFileApiConsumer)
 {
     this._tokenManager = tokenManager;
     this._ISpartaneQueryApiConsumer = SpartaneQueryApiConsumer;
     this._ISpartaneFileApiConsumer  = SpartaneFileApiConsumer;
 }