Skip to content

Dependency injection container extension for Revit add-ins.

License

Notifications You must be signed in to change notification settings

ricaun-io/ricaun.Revit.DI

Repository files navigation

ricaun.Revit.DI

Revit 2017 Visual Studio 2022 Nuke License MIT Build Release

ricaun.Revit.DI

This project was generated by the ricaun.AppLoader Revit plugin.

ricaun.DI

This package uses the ricaun.DI package to provide the base implementation dependency injection container.

ricaun.Revit.DI

AddRevitSingleton

Add Revit UI singleton UIApplication,UIControlledApplication,Application, and ControlledApplication to the container.

UIApplication uiapp;
container.AddRevitSingleton(uiapp);

or

UIControlledApplication application;
container.AddRevitSingleton(application);

Add Revit DB singleton Application, and ControlledApplication to the container.

Application application;
container.AddRevitSingleton(application);

or

ControlledApplication application;
container.AddRevitSingleton(application);

ricaun.Revit.DI.Example

The project ricaun.Revit.DI.Example provide an example of how to use the ricaun.Revit.DI package.

Release

License

This project is licensed under the MIT Licence.


Do you like this project? Please star this project on GitHub!