Ejemplo n.º 1
0
 public static DpdtBindingReferenceSet GetDisabled(CodeLensTarget target)
 {
     return(new DpdtBindingReferenceSet(
                DpdtBindingReferenceSetStatusEnum.Disabled,
                target,
                new List <DpdtBindingTarget>()
                ));
 }
Ejemplo n.º 2
0
 public static DpdtBindingReferenceSet GetInProgress(CodeLensTarget target)
 {
     return(new DpdtBindingReferenceSet(
                DpdtBindingReferenceSetStatusEnum.InProgress,
                target,
                new List <DpdtBindingTarget>()
                ));
 }
Ejemplo n.º 3
0
 public static DpdtBindingReferenceSet GetWithResults(
     CodeLensTarget target,
     IReadOnlyList <DpdtBindingTarget> bindingTargets
     )
 {
     return(new DpdtBindingReferenceSet(
                DpdtBindingReferenceSetStatusEnum.Processed,
                target,
                bindingTargets
                ));
 }
Ejemplo n.º 4
0
        public DpdtBindingReferenceSet(
            DpdtBindingReferenceSetStatusEnum status,
            CodeLensTarget target,
            IReadOnlyList <DpdtBindingTarget> bindingTargets
            )
        {
            if (target is null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            if (bindingTargets is null)
            {
                throw new ArgumentNullException(nameof(bindingTargets));
            }

            Status         = status;
            Target         = target;
            BindingTargets = bindingTargets;
        }