dotnet

package
v0.0.0-...-8e12632 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDelegate

func CreateDelegate(assembly string, typ string, method string, delegate int, f *unsafe.Pointer) error

CreateDelegate wraps a cgo call to coreclr_create_delegate, receives a function pointer.

func Init

func Init() (err error)

Init performs the runtime initialization This function sets a few default values to make everything easier.

func SetParams

func SetParams(params RuntimeParams)

SetParams sets initial runtime parameters.

func SetupDelegates

func SetupDelegates(f func() error)

SetupDelegates sets all create_delegate calls to be executed after the runtime initialization.

Types

type Runtime

type Runtime struct {
	Params RuntimeParams
	// contains filtered or unexported fields
}

Runtime is the runtime data structure.

func (*Runtime) Shutdown

func (r *Runtime) Shutdown() (err error)

Shutdown unloads the current app

https://github.com/dotnet/coreclr/blob/d81d773312dcae24d0b5d56cb972bf71e22f856c/src/dlls/mscoree/unixinterface.cpp#L281

type RuntimeParams

type RuntimeParams struct {
	ExePath                     string
	AppDomainFriendlyName       string
	Properties                  map[string]string
	ManagedAssemblyAbsolutePath string

	CLRFilesAbsolutePath string
}

RuntimeParams holds the CLR initialization parameters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL