Example #1
0
        public FacebookAuthentication(string clientId, string scope, IFacebookAuthentication authInterface)
        {
            _authInterface = authInterface;

            _auth = new OAuth2Authenticator(clientId, scope, new Uri(AuthorizeUrl), new Uri(RedirectUrl), null, false);

            _auth.Completed += OnAuthenticationCompleted;
            _auth.Error     += OnAuthenticationFailed;
        }
Example #2
0
 public ImportCustomer(
     IConfigService configService,
     IQuartetClientFactory clientFactory,
     IAppSettings appSettings,
     IConsultantContext consultantContext,
     IMappingService<UploadedCustomer, ImportedCustomer> customerMappingService,
     IFacebookAuthentication fbAuth,
     IMailingService emailService
 )
 {
     _configService          = configService;
     _quartetClientFactory   = clientFactory;
     _appSettings            = appSettings;
     _consultantContext      = consultantContext;
     _customerMappingService = customerMappingService;
     _fbAuth                 = fbAuth;
     _emailService           = emailService;
 }