コード例 #1
0
        private bool SaveChat(string id, ChatClient client)
        {
            this._liveChatService = (ILiveChatService)EngineContext.Current.Resolve <ILiveChatService>();
            bool isSaved = this._liveChatService.SaveChat(id, client);

            return(isSaved);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public ChatService(IChatRepository repository, ILiveChatService liveChatService)
 {
     _repository      = repository;
     _liveChatService = liveChatService;
 }