AddPerContextDynamicProperty() private method

private AddPerContextDynamicProperty ( IDynamicProperty prop ) : bool
prop IDynamicProperty
return bool
示例#1
0
 internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop)
 {
     if (ctx != null)
     {
         return(ctx.AddPerContextDynamicProperty(prop));
     }
     return(Context.AddGlobalDynamicProperty(prop));
 }
 internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop)
 {
     if (ctx != null)
     {
         return ctx.AddPerContextDynamicProperty(prop);
     }
     return AddGlobalDynamicProperty(prop);
 }
 /*
  *  Support for dynamic sinks at context level
  *
  */
 internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop)
 {
     // Check if we have a property by this name
     if (ctx != null)
     {
         return(ctx.AddPerContextDynamicProperty(prop));
     }
     else
     {
         // We have to add a sink that should fire for all contexts
         return(AddGlobalDynamicProperty(prop));
     }
 }
示例#4
0
 [System.Security.SecurityCritical]  // auto-generated
 internal static bool AddDynamicProperty(Context ctx, IDynamicProperty prop)
 {
     // Check if we have a property by this name
     if (ctx != null)
     {
         return ctx.AddPerContextDynamicProperty(prop);
     }
     else
     {
         // We have to add a sink that should fire for all contexts
         return AddGlobalDynamicProperty(prop);
     }
 }