/// <summary> /// Initializes a new instance of the <see cref="MiaowWebWorkContext"/> class. /// </summary> /// <param name="MiaowHttpContext">The HTTP context.</param> /// <param name="MiaowUserService">The Miaow user service.</param> /// <param name="MiaowCityInfoService">The Miaow city info service.</param> public MiaowWebWorkContext(HttpContextBase MiaowHttpContext, Miaow.Infrastructure.Crosscutting.Authorize.IUserService MiaowUserService, Miaow.Infrastructure.Crosscutting.Comm.Service.ICityInfoService MiaowCityInfoService, Miaow.Infrastructure.Crosscutting.Authorize.IUserExtensionService userExtension) { if (MiaowHttpContext == null) { throw new ArgumentNullException("httpContext is null"); } if (MiaowUserService == null) { throw new ArgumentNullException("userService is null"); } if (MiaowCityInfoService == null) { throw new ArgumentNullException("cityInfoService is null"); } if (userExtension == null) { throw new ArgumentNullException("userExtensionService is null"); } httpContext = MiaowHttpContext; userService = MiaowUserService; cityInfoService = MiaowCityInfoService; userExtensionService = userExtension; }
public UserController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Infrastructure.Crosscutting.Authorize.IUserService userRole) : base(work) { if (userRole == null) { throw new ArgumentNullException("userService is null"); } userService = userRole; }
public ProfileController(Miaow.Infrastructure.Crosscutting.NetFramework.IWorkContext work, Miaow.Infrastructure.Crosscutting.Authorize.IUserService user, Miaow.Infrastructure.Crosscutting.Comm.Service.IFormsAuthService formAuth) : base(work) { if (user == null) { throw new ArgumentNullException("userService is null"); } if (formAuth == null) { throw new ArgumentNullException("formAuthService is null"); } userService = user; formAuthService = formAuth; }