Esempio n. 1
0
        protected ResolveDuplexAsyncResult(TResolveMessage resolveMessage,
                                           IDiscoveryServiceImplementation discoveryServiceImpl,
                                           IMulticastSuppressionImplementation multicastSuppressionImpl,
                                           AsyncCallback callback,
                                           object state)
            : base(callback, state)
        {
            Fx.Assert(resolveMessage != null, "The resolveMessage must be non null.");
            Fx.Assert(discoveryServiceImpl != null, "The discoveryServiceImpl must be non null.");

            this.discoveryServiceImpl     = discoveryServiceImpl;
            this.multicastSuppressionImpl = multicastSuppressionImpl;

            if (!this.Validate(resolveMessage))
            {
                this.Complete(true);
                return;
            }
            else
            {
                this.context         = new DiscoveryOperationContext(OperationContext.Current);
                this.resolveCriteria = this.GetResolveCriteria(resolveMessage);
                this.timeoutHelper   = new TimeoutHelper(this.resolveCriteria.Duration);
                this.timeoutHelper.RemainingTime();
                this.Process();
            }
        }
Esempio n. 2
0
 internal ProbeDuplexApril2005AsyncResult(ProbeMessageApril2005 probeMessage,
                                          IDiscoveryServiceImplementation discoveryServiceImpl,
                                          IMulticastSuppressionImplementation multicastSuppressionImpl,
                                          AsyncCallback callback,
                                          object state)
     : base(probeMessage, discoveryServiceImpl, multicastSuppressionImpl, callback, state)
 {
 }
 internal ResolveDuplex11AsyncResult(ResolveMessage11 resolveMessage,
                                     IDiscoveryServiceImplementation discoveryServiceImpl,
                                     IMulticastSuppressionImplementation multicastSuppressionImpl,
                                     AsyncCallback callback,
                                     object state)
     : base(resolveMessage, discoveryServiceImpl, multicastSuppressionImpl, callback, state)
 {
 }