public FreezerStateHolder(IFreezerTasksProcessor processor, INameGeneratorService nameGenerator) { _processor = processor; _nameGenerator = nameGenerator; lock (this) { _state = DefaultState.GetCopy(); } }
public AccountController( UserManager <User> userManager, SignInManager <User> signInManager, IIdentityServerInteractionService interaction, IClientStore clientStore, IEventService events, INameGeneratorService nameGenerator, IColorGenerator colorGenerator, IPasswordGeneratorService passwordGenerator) { _userManager = userManager; _signInManager = signInManager; _interaction = interaction; _clientStore = clientStore; _events = events; _nameGenerator = nameGenerator; _colorGenerator = colorGenerator; _passwordGenerator = passwordGenerator; }
public string NewName(INameGeneratorService service) { return(service.Name()); }