Ejemplo n.º 1
0
 /// <summary>
 /// Optional override to create listeners (e.g., HTTP, Service Remoting, WCF, etc.) for this service replica to handle client or user requests.
 /// </summary>
 /// <remarks>
 /// For more information on service communication, see https://aka.ms/servicefabricservicecommunication
 /// </remarks>
 /// <returns>A collection of listeners.</returns>
 protected override IEnumerable <ServiceReplicaListener> CreateServiceReplicaListeners()
 {
     logger.LogInfo("Creating Service Replica Listeners For Audit Required Payments Service");
     return(new List <ServiceReplicaListener>
     {
         new ServiceReplicaListener(context => listener = lifetimeScope.Resolve <IStatefulEndpointCommunicationListener>())
     });
 }