public FizzSessionRepository(string userId, string locale, IFizzSessionProvider sessionProvider) { _userId = userId; _locale = locale; _sessionProvider = sessionProvider; Session = new FizzSession(null, null, 0); }
public FizzClient(IFizzSessionProvider sessionClient) { _dispatcher = new FizzActionDispatcher(); _sessionClient = sessionClient; _chat = new FizzChatClient(_dispatcher); _restClient = new FizzRestClient(_dispatcher); _authClient = new FizzAuthRestClient(_restClient); _ingestionClient = new FizzIngestionClient(new FizzInMemoryEventLog(), _dispatcher); _moderationClient = new FizzModerationClient(); }
public FizzClient(string appId, IFizzSessionProvider sessionClient) { if (string.IsNullOrEmpty(appId)) { throw FizzException.ERROR_INVALID_APP_ID; } _sessionClient = sessionClient; _chat = new FizzChatClient(appId, _dispatcher); _restClient = new FizzRestClient(_dispatcher); _authClient = new FizzAuthRestClient(_restClient); _ingestionClient = new FizzIngestionClient(new FizzInMemoryEventLog(), _dispatcher); _moderationClient = new FizzModerationClient(); }
public FizzClient(string appId, string appSecret) { if (string.IsNullOrEmpty(appId)) { throw FizzException.ERROR_INVALID_APP_ID; } if (string.IsNullOrEmpty(appSecret)) { throw FizzException.ERROR_INVALID_APP_SECRET; } _dispatcher = new FizzActionDispatcher(); _chat = new FizzChatClient(_dispatcher); _restClient = new FizzRestClient(_dispatcher); _sessionClient = new FizzIdSecretSessionProvider(appId, appSecret, _restClient); _authClient = new FizzAuthRestClient(_restClient); _ingestionClient = new FizzIngestionClient(new FizzInMemoryEventLog(), _dispatcher); _moderationClient = new FizzModerationClient(); }