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