internal static FabricTransportRemotingListenerSettings GetActorListenerSettings(ActorService actorService) { FabricTransportRemotingListenerSettings listenerSettings; if (!FabricTransportRemotingListenerSettings.TryLoadFrom(ActorNameFormat.GetFabricServiceTransportSettingsSectionName(actorService.ActorTypeInformation.ImplementationType), out listenerSettings, (string)null)) { listenerSettings = GetDefaultFabricTransportListenerSettings("TransportSettings"); } return(listenerSettings); }
private static FabricTransportRemotingListenerSettings GetDefaultFabricTransportListenerSettings(string sectionName = "TransportSettings") { var listenerSettings = (FabricTransportRemotingListenerSettings)null; if (!FabricTransportRemotingListenerSettings.TryLoadFrom(sectionName, out listenerSettings, (string)null)) { listenerSettings = new FabricTransportRemotingListenerSettings(); } return(listenerSettings); }
internal static FabricTransportRemotingListenerSettings GetActorListenerSettings(ActorService actorService) { var sectionName = ActorNameFormat.GetFabricServiceTransportSettingsSectionName( actorService.ActorTypeInformation.ImplementationType); FabricTransportRemotingListenerSettings listenerSettings; var isSucceded = FabricTransportRemotingListenerSettings.TryLoadFrom(sectionName, out listenerSettings); if (!isSucceded) { listenerSettings = FabricTransportRemotingListenerSettings.GetDefault(); } return(listenerSettings); }