示例#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>();
 }
示例#2
0
 public SecurityAdministrationController(ITokenManager tokenManager, ISpartan_User_RoleApiConsumer userRoleApiConsumer, ISpartan_User_Role_StatusApiConsumer userRoleStatusApiConsumer, ISpartanModuleApiConsumer spartanModuleApiConsumer, ISpartanUserRoleModuleApiConsumer SpartanUserRoleModuleApiConsumer, ISpartaneModuleObjectApiConsumer SpartaneModuleObjectApiConsumer, ISpartaneUserRoleModuleObjectApiConsumer SpartaneUserRoleModuleObjectApiConsumer, ISpartaneUserRoleObjectFunctionApiConsumer SpartaneUserRoleObjectFunctionApiConsumer, ISpartaneObjectApiConsumer SpartaneObjectApiConsumer, ISpartan_MetadataApiConsumer Spartan_MetadataApiConsumer, ISpartan_Traduction_DetailApiConsumer Spartan_Traduction_DetailApiConsumer)
 {
     this._IUserRoleApiConsumer                       = userRoleApiConsumer;
     this._IUserRoleStatusApiConsumer                 = userRoleStatusApiConsumer;
     this._ISpartanModuleApiConsumer                  = spartanModuleApiConsumer;
     this._ISpartanUserRoleModuleApiConsumer          = SpartanUserRoleModuleApiConsumer;
     this._ISpartaneModuleObjectApiConsumer           = SpartaneModuleObjectApiConsumer;
     this._ISpartaneUserRoleModuleObjectApiConsumer   = SpartaneUserRoleModuleObjectApiConsumer;
     this._ISpartaneUserRoleObjectFunctionApiConsumer = SpartaneUserRoleObjectFunctionApiConsumer;
     this._ISpartaneObjectApiConsumer                 = SpartaneObjectApiConsumer;
     this._tokenManager = tokenManager;
     this._ISpartan_MetadataApiConsumer          = Spartan_MetadataApiConsumer;
     this._ISpartan_Traduction_DetailApiConsumer = Spartan_Traduction_DetailApiConsumer;
 }