Exemplo n.º 1
0
 public SessionService(IApplicationDataService applicationSettings, IFacebookService facebookService,
                       IMicrosoftService microsoftService, IGoogleService googleService)
 {
     this.applicationSettings = applicationSettings;
     this.facebookService     = facebookService;
     this.microsoftService    = microsoftService;
     this.googleService       = googleService;
 }
 /// <summary> 
 /// Initializes a new instance of the <see cref="SessionService" /> class. 
 /// </summary> 
 /// <param name="applicationSettings">The application settings.</param> 
 /// <param name="facebookService">The facebook service.</param> 
 /// <param name="microsoftService">The microsoft service.</param> 
 /// <param name="googleService">The google service.</param> 
 /// <param name="logManager">The log manager.</param> 
 public SessionService(IApplicationDataService applicationSettings,
     IFacebookService facebookService,
     IMicrosoftService microsoftService,
     IGoogleService googleService, ILogManager logManager)
 {
     _applicationSettings = applicationSettings;
     _facebookService = facebookService;
     _microsoftService = microsoftService;
     _googleService = googleService;
     _logManager = logManager;
 }
        public AuthenticationController(ICommandExecutor commandExecutor, IMicrosoftService microsoftService, IFacebookService facebookService, IGoogleService googleService, ITwitterService twitterService)
            : base(commandExecutor)
        {
            Guard.NotNull(commandExecutor, nameof(commandExecutor));
            Guard.NotNull(microsoftService, nameof(microsoftService));
            Guard.NotNull(facebookService, nameof(facebookService));
            Guard.NotNull(googleService, nameof(googleService));
            Guard.NotNull(twitterService, nameof(twitterService));

            this._microsoftService = microsoftService;
            this._facebookService = facebookService;
            this._googleService = googleService;
            this._twitterService = twitterService;
        }