Exemplo n.º 1
0
        public void OnTranslationComplete(Action <IAsyncTranslationPayload, IEnumerable <ITranslation> > onTranslationComplete)
        {
            if (onTranslationComplete == null)
            {
                throw new ArgumentNullException("onTranslationComplete");
            }

            IAsyncTranslationComplete tranzComplete = new AsyncTranslationComplete(this, onTranslationComplete);

            this.Transloator.AddTranslationHandler(this.Id, tranzComplete);
        }
        public void OnTranslationComplete(Action<IAsyncTranslationPayload, IEnumerable<ITranslation>> onTranslationComplete)
        {
            if (onTranslationComplete == null) { throw new ArgumentNullException("onTranslationComplete"); }

            IAsyncTranslationComplete tranzComplete = new AsyncTranslationComplete(this, onTranslationComplete);
            this.Transloator.AddTranslationHandler(this.Id, tranzComplete);
        }