Exemplo n.º 1
0
 protected virtual void RegisterOperationModel(IDependencyResolver resolver)
 {
     OperationFilterTypes.ForEach(
         x => resolver.AddDependency(typeof(IOperationFilter), x, DependencyLifetime.Transient));
     OperationHydratorTypes.ForEach(
         x => resolver.AddDependency(typeof(IOperationHydrator), x, DependencyLifetime.Transient));
     OperationCodecSelectorTypes.ForEach(
         x => resolver.AddDependency(typeof(IOperationCodecSelector), x, DependencyLifetime.Transient));
 }
        protected virtual void RegisterOperationModel(IDependencyResolver resolver)
        {
            OperationFilterTypes.ForEach(
                x => resolver.AddDependency(typeof(IOperationFilter), x, DependencyLifetime.Transient));
#pragma warning disable 618 - legacy support
            OperationHydratorTypes.ForEach(
                x => resolver.AddDependency(typeof(IOperationHydrator), x, DependencyLifetime.Transient));
#pragma warning restore 618
            OperationCodecSelectorTypes.ForEach(
                x => resolver.AddDependency(typeof(IOperationCodecSelector), x, DependencyLifetime.Transient));
        }
 public void AddOperationCodecSelector <T>()
 {
     OperationCodecSelectorTypes.Add(typeof(T));
 }