示例#1
0
 public UserManagementController(ICommandBus commandBus, UserManager <IdentityUser> userManager, IUserFactory userFactory, IUserEvents userEvents)
     : base(commandBus)
 {
     this.userManager = userManager;
     this.userFactory = userFactory;
     this.userEvents  = userEvents;
 }
        public UserClientEngine(IUserEvents userEvents)
        {
            UserEvents = userEvents;
            var           TotalConfig = ConfigurationManager.GetSection("superSocket") as IConfigurationSource;
            IClientConfig config      = TotalConfig.Clients.FirstOrDefault();

            Init(config);
        }
示例#3
0
 public ProfileController(
     SignInManager <IdentityUser> signInManager,
     UserManager <IdentityUser> userManager,
     IUserPictureStore userPictureStore,
     IUserEvents userEvents,
     IAssetThumbnailGenerator assetThumbnailGenerator,
     IOptions <MyIdentityOptions> identityOptions)
 {
     this.signInManager           = signInManager;
     this.identityOptions         = identityOptions.Value;
     this.userManager             = userManager;
     this.userPictureStore        = userPictureStore;
     this.userEvents              = userEvents;
     this.assetThumbnailGenerator = assetThumbnailGenerator;
 }
示例#4
0
 public AccountController(
     SignInManager <IdentityUser> signInManager,
     UserManager <IdentityUser> userManager,
     IUserFactory userFactory,
     IUserEvents userEvents,
     IOptions <MyIdentityOptions> identityOptions,
     ISemanticLog log,
     IIdentityServerInteractionService interactions)
 {
     this.log             = log;
     this.userEvents      = userEvents;
     this.userManager     = userManager;
     this.userFactory     = userFactory;
     this.interactions    = interactions;
     this.identityOptions = identityOptions.Value;
     this.signInManager   = signInManager;
 }
 public UserClientEngine(IUserEvents userEvents, IClientConfig config)
 {
     UserEvents = userEvents;
     Config     = config;
     Init();
 }
 public UserClientEngine(IUserEvents userEvents, EndPoint endpoint, int MaxReceiveLength)
 {
     UserEvents = userEvents;
     Init(endpoint, MaxReceiveLength);
 }
示例#7
0
 public static IUserClientEngine CreateUserEngine(IUserEvents userEvents)
 {
     return(new UserClientEngine(userEvents));
 }