Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }