< Summary

Information
Class: ImpromptuInterface.Build.ActLikeProxyAttribute
Assembly: ImpromptuInterface
File(s): /home/runner/work/impromptu-interface/impromptu-interface/ImpromptuInterface/src/EmitProxy/ActLikeProxyAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 51
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%

File(s)

/home/runner/work/impromptu-interface/impromptu-interface/ImpromptuInterface/src/EmitProxy/ActLikeProxyAttribute.cs

#LineLine coverage
 1//
 2//  Copyright 2011 Ekon Benefits
 3//
 4//    Licensed under the Apache License, Version 2.0 (the "License");
 5//    you may not use this file except in compliance with the License.
 6//    You may obtain a copy of the License at
 7//
 8//        http://www.apache.org/licenses/LICENSE-2.0
 9//
 10//    Unless required by applicable law or agreed to in writing, software
 11//    distributed under the License is distributed on an "AS IS" BASIS,
 12//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13//    See the License for the specific language governing permissions and
 14//    limitations under the License.
 15
 16
 17using System;
 18
 19
 20namespace ImpromptuInterface.Build
 21{
 22    /// <summary>
 23    /// Meta info describing proxy usage. Can be used to preload proxy.
 24    /// </summary>
 25    [AttributeUsage(AttributeTargets.Class)]
 26  [Serializable]
 27    public sealed class ActLikeProxyAttribute:Attribute
 28    {
 29        /// <summary>
 30        /// Initializes a new instance of the <see cref="ActLikeProxyAttribute"/> class.
 31        /// </summary>
 32        /// <param name="interfaces">The interfaces.</param>
 33        /// <param name="context">The context.</param>
 034        public ActLikeProxyAttribute(Type[] interfaces, Type context)
 35        {
 036            Interfaces = interfaces;
 037            Context = context;
 038        }
 39
 40        /// <summary>
 41        /// Gets or sets the interfaces.
 42        /// </summary>
 43        /// <value>The interfaces.</value>
 44        public Type[] Interfaces { get; set; }
 45        /// <summary>
 46        /// Gets or sets the context.
 47        /// </summary>
 48        /// <value>The context.</value>
 49        public Type Context { get; set; }
 50    }
 51}