AddTag() public method

public AddTag ( string tag ) : void
tag string
return void
 private void AddTag(HttpContext context, ExampleConfig config)
 {
     lock (lockObj)
     {
         try
         {
             config.AddTag(this.Shrink(context.Request["tag"], 128));
             new DirectResponse().Return();
         }
         catch (Exception e)
         {
             new DirectResponse {
                 Success = false, ErrorMessage = e.Message
             }.Return();
         }
     }
 }
Ejemplo n.º 2
0
 private void AddTag(HttpContext context, ExampleConfig config)
 {
     lock (lockObj)
     {
         try
         {
             config.AddTag(this.Shrink(context.Request["tag"], 128));
             new DirectResponse().Return();
         }
         catch (Exception e)
         {
             new DirectResponse{Success = false, ErrorMessage = e.Message}.Return();
         }
     }
 }