public override void Exit() { if (userGenericService != null) { userGenericService.Dispose(); } userGenericService = null; base.Exit(); }
public void LoadUserService(Type createServiceType, object createMethodArgs) { var createServiceMethod = GetCreateUserServiceMethod(createServiceType); userGenericService = createServiceMethod.Invoke(null, null) as IUserGenericService; if (userGenericService == null) { throw new ApplicationException("create-service-method failed to create user service"); } }
public void LoadUserService(Type createServiceType, object createMethodArgs) { var createServiceMethod = GetCreateUserServiceMethod(createServiceType); userGenericService = createServiceMethod.Invoke(null, null) as IUserGenericService; if (userGenericService == null) throw new ApplicationException("create-service-method failed to create user service"); }
public override void Exit() { if (userGenericService != null) userGenericService.Dispose(); userGenericService = null; base.Exit(); }