public void CreateFacebookService(string customerKeyString, string customerSecretKeyString, IShareAuthenticationCallbacks authenticationCallbacks, IAccountStoreConfiguration accountStoreConfiguration) { _facebookShareService = new CMPFacebookShareService(customerKeyString, customerSecretKeyString, authenticationCallbacks, accountStoreConfiguration); }
public CMPTwitterShareService(string customerKeyString, string customerSecretKeyString, IShareAuthenticationCallbacks authenticationCallbacks, IAccountStoreConfiguration accountStoreConfiguration) : base(customerKeyString, customerSecretKeyString) { _authenticationCallbacks = authenticationCallbacks; _accountStoreProxy = new CMPAccountStoreProxy(accountStoreConfiguration); _cancellationTokenSource = new CancellationTokenSource(); }
public CMPAccountStore(IAccountStoreConfiguration configuration) { _account = new Account(); var configurationInfo = configuration.GetAccountStore(); if (configurationInfo == null) { return; } _accountStore = configurationInfo.Item1; _serviceIdstring = string.Copy(configurationInfo.Item2); }
public CMPAccountStoreProxy(IAccountStoreConfiguration configuration) { _accountStore = new CMPAccountStore(configuration); }