internal static IApplicationWrapper Instance()
        {
            if (_instance == null)
            {
                _instance = new ApplicationWrapper();
            }

            return(_instance);
        }
Exemplo n.º 2
0
 public ControllerContext(
     ISessionWrapper session,
     IApplicationWrapper application,
     IRequestWrapper request,
     IResponseWrapper response)
 {
     Session     = session;
     Application = application;
     Request     = request;
     Response    = response;
 }
Exemplo n.º 3
0
        public ShellViewModel(IEventAggregator events, ISnackbarMessageQueue snackbarMessageQueue, IApplicationWrapper applicationWrapper, RDCSessionViewModel rdcSessionVM,
                              RDCCollectionViewModel rdcCollectionVM, RDCUserAccountsViewModel rdcUserAccountsVM, RDCGroupsViewModel rdcGroupsVM)
        {
            DisplayName = "RDC Manager";

            _applicationWrapper = applicationWrapper;

            _events = events;
            _events.Subscribe(this);

            SnackbarMessageQueue = snackbarMessageQueue;

            RDCSessionVM      = rdcSessionVM;
            RDCCollectionVM   = rdcCollectionVM;
            RDCUserAccountsVM = rdcUserAccountsVM;
            RDCGroupsVM       = rdcGroupsVM;

            ShowRDCList();
        }
Exemplo n.º 4
0
 //Init is called after all of the plugins/modules have been loaded. At this point you need to provide a reference to your application wrapper and any
 //extra methods you want to expose to the API.
 public override void Init(out IApplicationWrapper Application, out WebMethodsBase APIMethods)
 {
     app         = new FiveMApp(this);
     Application = app;
     APIMethods  = null;
 }
 public ApplicationHandler(IApplicationWrapper app)
 {
     _app = app;
 }
Exemplo n.º 6
0
 public static List <string> MapList(object context, IApplicationWrapper app) => new List <string>()
 {
     "Procedural Map", "Barren", "HapisIsland", "SavasIsland", "SavasIsland_koth"
 };
Exemplo n.º 7
0
 //Init is called after all of the plugins/modules have been loaded. At this point you need to provide a reference to your application wrapper and any
 //extra methods you want to expose to the API.
 public override void Init(out IApplicationWrapper Application, out WebMethodsBase APIMethods)
 {
     app         = new RustApp(this);
     Application = app;
     APIMethods  = new WebMethods(this);
 }
Exemplo n.º 8
0
 public AppDataService(IApplicationWrapper applicationWrapper)
 {
     _applicationWrapper = applicationWrapper;
 }