private bool SaveChat(string id, ChatClient client) { this._liveChatService = (ILiveChatService)EngineContext.Current.Resolve <ILiveChatService>(); bool isSaved = this._liveChatService.SaveChat(id, client); return(isSaved); }
public LiveChatController(ISettingService settingService, IEmailSender emailSender , IEmailAccountService emailAccountService, LiveChatSettings liveChatSettings , IPermissionService permissionService, ILiveChatService liveChatService, CaptchaSettings captchaSettings) { this._settingService = settingService; this._emailAccountService = emailAccountService; this._emailSender = emailSender; this._liveChatSettings = liveChatSettings; this._permissionService = permissionService; this._liveChatService = liveChatService; this._captchaSettings = captchaSettings; }
public ChatService(IChatRepository repository, ILiveChatService liveChatService) { _repository = repository; _liveChatService = liveChatService; }