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; }
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; }