/// <summary> /// Add a <see cref="ServiceSecurityTarget"/> to the <see cref="InvokeService">action</see> /// </summary> /// <param name="action"><see cref="InvokeService">Action</see> to add to</param> /// <returns><see cref="ServiceSecurityTarget"/></returns> public static ServiceSecurityTarget Services(this InvokeService action) { var target = new ServiceSecurityTarget(); action.AddTarget(target); return(target); }
/// <summary> /// Add an <see cref="InvokeService">action</see> to describe the invoking of services /// </summary> /// <param name="descriptorBuilder"><see cref="ISecurityDescriptorBuilder"/> to extend</param> /// <returns><see cref="InvokeService"/> for describing the action</returns> public static InvokeService Invoking(this ISecurityDescriptorBuilder descriptorBuilder) { var action = new InvokeService(); descriptorBuilder.Descriptor.AddAction(action); return(action); }