Esempio n. 1
0
 protected override IEnumerable <ServiceReplicaListener> CreateServiceReplicaListeners()
 {
     return(new[] { new ServiceReplicaListener(context =>
         {
             communicationListener = new CommunicationListener <TSelf>(Self);
             return new CompositeCommunicationListener(communicationListener, this.CreateServiceRemotingListener(context));
         }) });
 }
        protected override IEnumerable <ServiceReplicaListener> CreateServiceReplicaListeners()
        {
            var localListeners = new[]
            {
                new ServiceReplicaListener(context =>
                {
                    communicationListener = new CommunicationListener <TSelf>(Self);
                    return(communicationListener);
                }, "CommunicationListener")
            };

            return(this.CreateServiceRemotingReplicaListeners().Concat(localListeners));
        }