public CodecDefinition(IFluentTarget rootTarget, ResourceDefinition resourceDefinition, Type codecType, object configuration) { _rootTarget = rootTarget; ResourceDefinition = resourceDefinition; _codecRegistration = new CodecModel(codecType, configuration); ResourceDefinition.Resource.Codecs.Add(_codecRegistration); }
public CodecDefinition(ResourceDefinition resourceDefinition, Type codecType, object configuration) { ResourceDefinition = resourceDefinition; this.codecRegistration = new CodecModel(codecType, configuration); ResourceDefinition.Registration.Codecs.Add(this.codecRegistration); }