Esempio n. 1
0
        private Networking.IClient InternalCreateClient(Networking.IChannelAddress channelAddress, Networking.IClientConfiguration configuration)
        {
            var client = Activator.CreateInstance(ClientType) as Networking.IClient;

            client.Initialize(channelAddress, configuration, TransportController.RegistrationController);
            return(client);
        }
Esempio n. 2
0
 /// <summary>
 /// Will use the given <see cref="Networking.IChannelAddress"/> and <see cref="Networking.IClientConfiguration"/> to create a <see cref="Networking.IClient"/>.
 /// </summary>
 /// <param name="channelAddress">The <see cref="Networking.IChannelAddress"/> defining the required connection information.</param>
 /// <param name="configuration">The <see cref="Networking.IClientConfiguration"/> defining the required configuration information.</param>
 /// <returns>A <see cref="Networking.IClient"/> created using the given <see cref="Networking.IChannelAddress"/> and <see cref="Networking.IClientConfiguration"/>.</returns>
 public Networking.IClient CreateClient(Networking.IChannelAddress channelAddress, Networking.IClientConfiguration configuration) => InternalCreateClient(channelAddress, configuration);