Class SourceRepositoryAttribute
Identifies the remote git repository the transpiled types in this assembly originate from.
When this attribute is present, the per-type SourceFileAttribute path is
relative to the repository root (forward-slash separated). Combined with
Commit, a source permalink can be formed as {Url}/blob/{Commit}/{SourceFile}.
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
public class SourceRepositoryAttribute : Attribute
Constructors
| Edit this page View SourceSourceRepositoryAttribute(string, string, string)
Creates a new instance of SourceRepositoryAttribute.
Declaration
public SourceRepositoryAttribute(string url, string commit, string branch)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | Canonical (https) remote repository URL. |
| string | commit | Full commit SHA the sources were transpiled from. |
| string | branch | Branch name; empty when the repository is in a detached-HEAD state. |
Properties
| Edit this page View SourceBranch
Gets the branch name; empty when the repository is in a detached-HEAD state.
Declaration
public string Branch { get; }
Property Value
| Type | Description |
|---|---|
| string |
Commit
Gets the full commit SHA the sources were transpiled from.
Declaration
public string Commit { get; }
Property Value
| Type | Description |
|---|---|
| string |
Url
Gets the canonical (https) remote repository URL.
Declaration
public string Url { get; }
Property Value
| Type | Description |
|---|---|
| string |