public FacebookAccountAppService( ISocialAccountService socialAccountService, IFbClient fbClient ) { _socialAccountService = socialAccountService; _fbClient = fbClient; }
// Method added because we can't inject IFbClient in ctor public void SetClient(IFbClient fbClient) { Contract.Requires(_fbClient == null); // We shouldn't set this if already set Contract.Requires(fbClient != null); Contract.Ensures(_fbClient != null); _fbClient = fbClient; }
// Method added because we can't inject IFbClient in ctor public void SetClient(IFbClient fbClient) { Contract.Requires(_fbClient == null); Contract.Requires(fbClient != null); Contract.Ensures(_fbClient != null); _fbClient = fbClient; }
public WebHookStrategy(IDependencyResolver dependencyResolver) { ConversationService = dependencyResolver.Resolve <IConversationService>(); SocialUserService = dependencyResolver.Resolve <ISocialUserService>(); MessageService = dependencyResolver.Resolve <IMessageService>(); NotificationManager = dependencyResolver.Resolve <INotificationManager>(); FbClient = dependencyResolver.Resolve <IFbClient>(); FacebookConverter = new FacebookConverter(); }
public FesDatabase(string dllName, Charset charset) { _fbClient = FbClientFactory.GetFbClient(dllName); _handle = new DatabaseHandle(); _charset = (charset != null ? charset : Charset.DefaultCharset); _dialect = 3; _packetSize = 8192; _statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }
public FesDatabase(string dllName, Charset charset) { _fbClient = FbClientFactory.Create(dllName); _handle = new DatabaseHandle(); Charset = charset ?? Charset.DefaultCharset; Dialect = 3; PacketSize = 8192; _statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }
public FesDatabase(string dllName, Charset charset) { this.fbClient = FbClientFactory.GetFbClient(dllName); this.charset = (charset != null ? charset : Charset.DefaultCharset); this.dialect = 3; this.packetSize = 8192; this.statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; GC.SuppressFinalize(this); }
/// <summary> /// FacebookAccountsController /// </summary> /// <param name="uowManager"></param> /// <param name="appService"></param> /// <param name="fbClient"></param> public FacebookAccountsController( IUnitOfWorkManager uowManager, IFacebookAccountAppService appService, IFbClient fbClient ) { _uowManager = uowManager; _appService = appService; _fbClient = fbClient; }
public MessageService( ISocialAccountService socialAccountService, IConversationService conversationService, IFbClient fbClient ) { _socialAccountService = socialAccountService; _conversationService = conversationService; _fbClient = fbClient; }
public SocialAccountService( ISiteSocialAccountRepository siteSocialAccountRepo, IRepository <SocialUser> socialUserRepo, IFbClient fbClient, ITwitterAuthService twitterAuthService ) { _siteSocialAccountRepo = siteSocialAccountRepo; _socialUserRepo = socialUserRepo; _fbClient = fbClient; _twitterAuthService = twitterAuthService; }
private static void ShutdownEntryPointWrapper(IFbClient fbClient) { // the fb_shutdown does not exists before 2.5 // the exception is just ignored // once <2.5 is not existing we can remove this try { fbClient.fb_shutdown(0, 0); } catch (EntryPointNotFoundException) { } }
public SocialUserAppService( ISocialUserService domainService, IConversationAppService conversationService, IFbClient fbClient, ITwitterClient twitterClient ) { _domainService = domainService; _conversationService = conversationService; _fbClient = fbClient; _twitterClient = twitterClient; }
public UserInfoService( IRepository <SocialUser> socialUserRepo, IRepository <Message> messageRepo, IRepository <Conversation> conversationRepo, IRepository <SocialAccount> socialAccountRepo, IFbClient fbClient ) { _socialUserRepo = socialUserRepo; _messageRepo = messageRepo; _conversationRepo = conversationRepo; _socialAccountRepo = socialAccountRepo; _fbClient = fbClient; }
public PullJobService( IConversationService conversationService, IMessageService messageService, ISocialUserService socialUserService, INotificationManager notificationManager, IFbClient fbClient ) { _conversationService = conversationService; _messageService = messageService; _socialUserService = socialUserService; _notificationManager = notificationManager; _fbClient = fbClient; _fbConverter = new FacebookConverter(); }
private static void ShutdownEntryPointWrapper(IFbClient fbClient) { // the fb_shutdown does not exists before 2.5 // the exception is just ignored // once <2.5 is not existing we can remove this try { fbClient.fb_shutdown(0, 0); } #if NETSTANDARD1_6 catch (Exception ex) when(ex.GetType().Name == "EntryPointNotFoundException") #else catch (EntryPointNotFoundException) #endif { } }
public DependencyResolverBuilder WithFacebookClient(IFbClient service) { _fbClient = service; return(this); }
public SocialUserService(IFbClient fbClient) { _fbClient = fbClient; }
public FesDatabase(string dllName, Charset charset) { _fbClient = FbClientFactory.GetFbClient(dllName); _charset = (charset != null ? charset : Charset.DefaultCharset); _dialect = 3; _packetSize = 8192; _statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }
public FesServiceManager(string dllName, Charset charset) { _fbClient = FbClientFactory.GetFbClient(dllName); _charset = (charset != null ? charset : Charset.DefaultCharset); _statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }
public FesServiceManager(string dllName, Charset charset) { _fbClient = FbClientFactory.Create(dllName); _charset = charset ?? Charset.DefaultCharset; _statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }
public FesServiceManager(string dllName, Charset charset) { this.fbClient = FbClientFactory.GetFbClient(dllName); this.charset = (charset != null ? charset : Charset.DefaultCharset); this.statusVector = new IntPtr[IscCodes.ISC_STATUS_LENGTH]; }