本文整理汇总了C#中ApplyTo类的典型用法代码示例。如果您正苦于以下问题:C# ApplyTo类的具体用法?C# ApplyTo怎么用?C# ApplyTo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApplyTo类属于命名空间,在下文中一共展示了ApplyTo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetValueForCopy
public static string GetValueForCopy(ApplyTo.Copy applyTo)
{
switch (applyTo)
{
case ApplyTo.Copy.ResourceOnly:
return "0";
case ApplyTo.Copy.ResourceAndAncestors:
return "infinity";
default:
throw new InvalidEnumArgumentException("applyTo", (int)applyTo, typeof(ApplyTo.Copy));
}
}
开发者ID:skazantsev,项目名称:WebDavClient,代码行数:12,代码来源:DepthHeaderHelper.cs
示例2: GetValueForPropfind
public static string GetValueForPropfind(ApplyTo.Propfind applyTo)
{
switch (applyTo)
{
case ApplyTo.Propfind.ResourceOnly:
return "0";
case ApplyTo.Propfind.ResourceAndChildren:
return "1";
case ApplyTo.Propfind.ResourceAndAncestors:
return "infinity";
default:
throw new InvalidEnumArgumentException("applyTo", (int)applyTo, typeof(ApplyTo.Propfind));
}
}
开发者ID:skazantsev,项目名称:WebDavClient,代码行数:14,代码来源:DepthHeaderHelper.cs
示例3: RequiresAnyPermissionAttribute
/// <summary>Initializes a new instance of the NServiceKit.ServiceInterface.RequiresAnyPermissionAttribute class.</summary>
///
/// <param name="applyTo"> The apply to.</param>
/// <param name="permissions">A variable-length parameters list containing permissions.</param>
public RequiresAnyPermissionAttribute(ApplyTo applyTo, params string[] permissions)
{
this.RequiredPermissions = permissions.ToList();
this.ApplyTo = applyTo;
this.Priority = (int)RequestFilterPriority.RequiredPermission;
}
开发者ID:Qasemt,项目名称:NServiceKit,代码行数:10,代码来源:RequiresAnyPermission.cs
示例4: WebSudoRequiredAttribute
public WebSudoRequiredAttribute(ApplyTo applyTo)
{
this.ApplyTo = applyTo;
this.Priority = -79;
}
开发者ID:AVee,项目名称:ServiceStack,代码行数:5,代码来源:WebSudoRequiredAttribute.cs
示例5: AuthenticateAttribute
public AuthenticateAttribute(ApplyTo applyTo)
{
this.ApplyTo = applyTo;
}
开发者ID:corneliutusnea,项目名称:ServiceStack,代码行数:4,代码来源:AuthenticateAttribute.cs
示例6: AuthenticateAttribute
public AuthenticateAttribute(ApplyTo applyTo, string provider)
: this(applyTo)
{
this.Provider = provider;
}
开发者ID:tystol,项目名称:ServiceStack,代码行数:5,代码来源:AuthenticateAttribute.cs
示例7: RequestFilterAttribute
/// <summary>
/// Creates a new <see cref="RequestFilterAttribute"/>
/// </summary>
/// <param name="applyTo">Defines when the filter should be executed</param>
public RequestFilterAttribute(ApplyTo applyTo)
{
ApplyTo = applyTo;
}
开发者ID:ELHANAFI,项目名称:ServiceStack,代码行数:8,代码来源:RequestFilterAttribute.cs
示例8: RequiredRoleAttribute
public RequiredRoleAttribute(ApplyTo applyTo, params string[] roles)
{
this.RequiredRoles = roles.ToList();
this.ApplyTo = applyTo;
}
开发者ID:niemyjski,项目名称:ServiceStack,代码行数:5,代码来源:RequiredRoleAttribute.cs
示例9: AuthenticateAttribute
public AuthenticateAttribute(ApplyTo applyTo)
: base(applyTo)
{
}
开发者ID:niemyjski,项目名称:ServiceStack,代码行数:4,代码来源:AuthenticateAttribute.cs
示例10: RequiresAuthenticateAttribute
public RequiresAuthenticateAttribute(ApplyTo applyTo, string provider)
: this(applyTo) {}
开发者ID:angelcolmenares,项目名称:Aicl.Colmetrik,代码行数:2,代码来源:RequiresAuthenticateAttribute.cs
示例11: Run
protected virtual object Run(RoutePriority request, ApplyTo method)
{
return request.AsTypeString();
}
开发者ID:AVee,项目名称:ServiceStack,代码行数:4,代码来源:RoutePriorityTests.cs
示例12: PermissionAttribute
public PermissionAttribute(ApplyTo applyTo, params string[] permissions):base(applyTo, permissions)
{
}
开发者ID:angelcolmenares,项目名称:Aicl.Delfin,代码行数:3,代码来源:PermissionAttribute.cs
示例13: HttpHeaderAttribute
/// <summary>
/// Initializes a new instance of the <see cref="HttpHeaderAttribute"/>
/// class that applies to the HTTP methods defined by the flag
/// <paramref name="apply_to"/> and uses the default authentication
/// challenge.
/// </summary>
/// <param name="apply_to">
/// A flag that indicates for which method this attribute should be applied.
/// </param>
public HttpHeaderAttribute(ApplyTo apply_to) : base(apply_to) {
Value = string.Empty;
}
开发者ID:joethinh,项目名称:nohros-must,代码行数:12,代码来源:HttpHeaderAttribute.cs
示例14: ResponseFilterAttribute
/// <summary>
/// Creates a new <see cref="ResponseFilterAttribute"/>
/// </summary>
/// <param name="applyTo">Defines when the filter should be executed</param>
public ResponseFilterAttribute(ApplyTo applyTo)
{
ApplyTo = applyTo;
}
开发者ID:half-evil,项目名称:ServiceStack,代码行数:8,代码来源:ResponseFilterAttribute.cs
示例15: RequiredPermissionAttribute
public RequiredPermissionAttribute(ApplyTo applyTo, params string[] permissions)
{
this.RequiredPermissions = permissions.ToList();
this.ApplyTo = applyTo;
}
开发者ID:austinvernsonger,项目名称:ServiceStack,代码行数:5,代码来源:RequiredPermissionAttribute.cs
示例16: ResponseFilterAttribute
public ResponseFilterAttribute()
{
ApplyTo = ApplyTo.All;
}
开发者ID:grammarware,项目名称:fodder,代码行数:4,代码来源:src_ServiceStack_ServiceInterface_ResponseFilterAttribute.cs
示例17: RoleAttribute
public RoleAttribute(ApplyTo applyTo, params string[] roles)
:base(applyTo, roles) {}
开发者ID:angelcolmenares,项目名称:Aicl.Delfin,代码行数:2,代码来源:RoleAttribute.cs
示例18: RequiredRoleAttribute
public RequiredRoleAttribute(ApplyTo applyTo, params string[] roles)
{
this.RequiredRoles = roles.ToList();
this.ApplyTo = applyTo;
this.Priority = (int) RequestFilterPriority.RequiredRole;
}
开发者ID:qqqzhch,项目名称:ServiceStack,代码行数:6,代码来源:RequiredRoleAttribute.cs
示例19: SecuredAttribute
public SecuredAttribute(ApplyTo applyTo)
: base(applyTo)
{
}
开发者ID:jrmitch120,项目名称:HomerunLeague,代码行数:4,代码来源:SecuredAttribute.cs
示例20: Setup
public override void Setup(TransitionBase.ParametersBase defaults) {
var param = defaults as Parameters;
if (param == null) return;
// Place params installation here
this.inState = new State(param.inState);
this.outState = new State(param.outState);
this.resetState = new State(param.resetState);
this.moveRoot = param.moveRoot;
this.stateApply = param.stateApply;
}
开发者ID:RuFengLau,项目名称:Unity3d.UI.Windows,代码行数:15,代码来源:WindowAnimationTransitionSlide.cs
注:本文中的ApplyTo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论