public UseRemotingListenerCommunicationListenerTheoryExtension Setup(
            ServiceHostRemotingCommunicationListenerFactory factory)
        {
            this.Factory = factory;

            return(this);
        }
        public static TCaller UseCommunicationListener <TCaller>(
            this TCaller @this,
            ServiceHostRemotingCommunicationListenerFactory factoryFunc)
            where TCaller : IConfigurableObject <IServiceHostRemotingListenerReplicaTemplateConfigurator>
        {
            @this.ConfigureObject(
                configurator => configurator.UseCommunicationListener(factoryFunc));

            return(@this);
        }
 public UseRemotingListenerCommunicationListenerTheoryExtension()
 {
     this.Factory = (
         context,
         build) =>
     {
         var options = build(context);
         return(new MockFabricTransportServiceRemotingListener(
                    context,
                    options.MessageHandler,
                    options.ListenerSettings,
                    options.MessageSerializationProvider));
     };
 }
 public void UseCommunicationListener(
     ServiceHostRemotingCommunicationListenerFactory factoryFunc)
 {
     this.RemotingCommunicationListenerFunc = factoryFunc
                                              ?? throw new ArgumentNullException(nameof(factoryFunc));
 }
Пример #5
0
 public void UseCommunicationListener(
     ServiceHostRemotingCommunicationListenerFactory factoryFunc)
 {
 }