public NetworkStreamingCallback(string streamingType, ServiceMessageBuilder builder, NetworkChannel channel, Type implementationType) { _streamingType = streamingType; _builder = builder; _channel = channel; _implementationType = implementationType; }
public NetworkStreamingServerAdapter(Type implementationType, NetworkChannel channel, ServiceMessageBuilder builder, DelegateContract contract) { var streamingCallback = typeof(NetworkStreamingCallback <>).MakeGenericType(contract.ValueType); _callback = Activator.CreateInstance(streamingCallback, new object[] { contract.StreamingType, builder, channel, implementationType }); _contract = contract; }