示例#1
0
 private IBindingInformation CreateInfo(RegistrationFlag rFlag)
 {
     return(new StdBindingInformation(rFlag));
 }
示例#2
0
            private IManagedComponent CreateServiceComponent(Type @class, Type @interface, RegistrationFlag regFlag)
            {
                var target = this.CreateTarget(@class, @interface);
                var info   = this.CreateInfo(regFlag);

                return(this.CreateComponent(target, info));
            }
示例#3
0
 public static bool IsSelf(this RegistrationFlag @this)
 {
     return(@this.Equals(RegistrationFlag.SelfRegistration));
 }
示例#4
0
 public static bool IsPerDependency(this RegistrationFlag @this)
 {
     return(@this.Equals(RegistrationFlag.PerDependency));
 }
示例#5
0
 public static bool IsSingleton(this RegistrationFlag @this)
 {
     return(@this.Equals(RegistrationFlag.Singleton));
 }