Пример #1
0
 protected override void RemoveInternal(object obj, IEnumerable <Uri> contexts)
 {
     if (contexts.Any())
     {
         SesameHelper.ModifyStore(obj, this.RemoveGraphFromContext, contexts);
     }
     else
     {
         SesameHelper.ModifyStore(obj, this.RemoveGraph);
     }
 }
Пример #2
0
 protected override void AddInternal(Object obj, IEnumerable <Uri> contexts)
 {
     if (contexts.Any())
     {
         SesameHelper.ModifyStore(obj, this.AddGraphToContext, contexts);
     }
     else
     {
         SesameHelper.ModifyStore(obj, this.AddGraph);
     }
 }