Exemplo n.º 1
0
        /// <summary>
        /// RefreshData method implmentation
        /// </summary>
        public void RefreshData(bool refreshgrid = false, bool clearselection = false)
        {
            this.UseWaitCursor = true;
            this.Cursor        = Cursors.WaitCursor;
            ComponentResourceManager resources = new ComponentResourceManager(typeof(UsersListView));

            this.uPNDataGridViewTextBoxColumn.HeaderText             = resources.GetString("uPNDataGridViewTextBoxColumn.HeaderText");
            this.mailAddressDataGridViewTextBoxColumn.HeaderText     = resources.GetString("mailAddressDataGridViewTextBoxColumn.HeaderText");
            this.phoneNumberDataGridViewTextBoxColumn.HeaderText     = resources.GetString("phoneNumberDataGridViewTextBoxColumn.HeaderText");
            this.preferredMethodDataGridViewTextBoxColumn.HeaderText = resources.GetString("preferredMethodDataGridViewTextBoxColumn.HeaderText");
            this.enabledDataGridViewCheckBoxColumn.HeaderText        = resources.GetString("enabledDataGridViewCheckBoxColumn.HeaderText");
            try
            {
                _lst = MMCService.GetUsers();
                if (clearselection)
                {
                    this.GridView.RowCount = 0;
                }
                this.GridView.RowCount = MMCService.GetUsersCount();
                if (refreshgrid)
                {
                    this.GridView.Refresh();
                }
                if (clearselection)
                {
                    // this.GridView.ClearSelection();
                }
            }
            finally
            {
                this.UseWaitCursor = false;
                this.Cursor        = Cursors.Default;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// BTNSendByMail_Click event
        /// </summary>
        private void BTNSendByMail_Click(object sender, EventArgs e)
        {
            Cursor crs = this.Cursor;
            int    cnt = 0;

            try
            {
                this.Cursor = Cursors.WaitCursor;
                RegistrationList lst = userPropertyPage.GetSharedUserData();
                foreach (Registration reg in lst)
                {
                    string secret = MMCService.GetEncodedUserKey(reg.UPN);
                    MMCService.SendKeyByEmail(reg.MailAddress, reg.UPN, secret);
                    cnt++;
                }
            }
            catch (Exception ex)
            {
                this.Cursor = crs;
                MessageBoxParameters messageBoxParameters = new MessageBoxParameters();
                messageBoxParameters.Text    = ex.Message;
                messageBoxParameters.Buttons = MessageBoxButtons.OK;
                messageBoxParameters.Icon    = MessageBoxIcon.Error;
                userPropertyPage.ParentSheet.ShowDialog(messageBoxParameters);
            }
            finally
            {
                this.Cursor = crs;
                MessageBoxParameters messageBoxParameters = new MessageBoxParameters();
                messageBoxParameters.Text    = string.Format(errors_strings.InfosSendingMails, cnt);
                messageBoxParameters.Buttons = MessageBoxButtons.OK;
                messageBoxParameters.Icon    = MessageBoxIcon.Information;
                userPropertyPage.ParentSheet.ShowDialog(messageBoxParameters);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// OnDelete method implmentation
        /// </summary>
        protected override void OnDelete(SyncStatus status)
        {
            MessageBoxParameters messageBoxParameters = new MessageBoxParameters();

            messageBoxParameters.Caption       = "Multi-Factor Authentication";
            messageBoxParameters.Buttons       = MessageBoxButtons.YesNo;
            messageBoxParameters.DefaultButton = MessageBoxDefaultButton.Button1;
            messageBoxParameters.Icon          = MessageBoxIcon.Question;
            messageBoxParameters.Text          = res.USERSFRMCONFIRMDELETE;

            if (this.SnapIn.Console.ShowDialog(messageBoxParameters) == DialogResult.Yes)
            {
                RegistrationList reg  = (RegistrationList)SelectionData.SelectionObject;
                bool             xres = DeleteUserStoreData(reg);
                if (xres)
                {
                    status.Complete("ok", true);
                }
                else
                {
                    status.CanCancel = true;
                    status.Complete("error", false);
                }
            }
            else
            {
                status.CanCancel = true;
                base.OnDelete(status);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Handle the selected action.
        /// </summary>
        protected override void OnSelectionAction(Microsoft.ManagementConsole.Action action, AsyncStatus status)
        {
            this.SelectionData.BeginUpdates();
            try
            {
                switch ((string)action.Tag)
                {
                case "EnableUser":
                {
                    RegistrationList reg = (RegistrationList)SelectionData.SelectionObject;
                    EnableUserStoreData(reg, true);
                    break;
                }

                case "DisableUser":
                {
                    RegistrationList reg = (RegistrationList)SelectionData.SelectionObject;
                    EnableUserStoreData(reg, false);
                    break;
                }

                case "PropertyUser":
                {
                    this.SelectionData.ShowPropertySheet(res.USERSFRMPROPERTIES + " : " + SelectionData.DisplayName);
                    break;
                }
                }
            }
            finally
            {
                this.SelectionData.EndUpdates();
            }
        }
Exemplo n.º 5
0
 public void AddRegistrations(RegistrationList registrations)
 {
     registrations
         .Add<Tag>()
         .Add<Filter>()
         .Add<Setting>();
 }
Exemplo n.º 6
0
        /// <summary>
        /// EnableUserStoreData method implementation
        /// </summary>
        private void EnableUserStoreData(object obj, bool enabled)
        {
            RegistrationList reg = null;

            if (obj is RegistrationList)
            {
                reg = (RegistrationList)obj;
                if (UsersListControl != null)
                {
                    this.SelectionData.BeginUpdates();
                    try
                    {
                        if (enabled)
                        {
                            UsersListControl.EnableUserData(reg);
                        }
                        else
                        {
                            UsersListControl.DisableUserData(reg);
                        }
                    }
                    finally
                    {
                        this.SelectionData.EndUpdates();
                    }
                }
            }
        }
        /// <summary>
        /// SetSharedUserData method implementation
        /// </summary>
        internal void SetSharedUserData(RegistrationList registrations)
        {
            if (usersFormView == null)
            {
                return;
            }
            WritableSharedDataItem shareddata = usersFormView.SharedUserData.GetItem("@adfsmfa_useredit" + seed);

            if (shareddata == null)
            {
                return;
            }
            if (registrations == null)
            {
                registrations = (RegistrationList)this.ParentSheet.SelectionObject;
                if (registrations == null)
                {
                    registrations = new RegistrationList();
                    Registration reg = new Registration();
                    reg.Enabled = true;
                    registrations.Add(reg);
                }
            }
            shareddata.SetData(registrations);
        }
 /// <summary>
 /// OnApply method implmentation
 /// </summary>
 /// <returns></returns>
 protected override bool OnApply()
 {
     if (Dirty)
     {
         RegistrationList registrations = GetSharedUserData();
         foreach (Registration reg in registrations)
         {
             if (CanApplyDataChanges(reg))
             {
                 if (!reg.IsApplied)
                 {
                     if (isnew)
                     {
                         usersFormView.AddUserStoreData(registrations);
                     }
                     else
                     {
                         usersFormView.SetUserStoreData(registrations);
                     }
                 }
                 reg.IsApplied = true;
             }
             else
             {
                 reg.IsApplied = false;
                 return(false);
             }
         }
         SetSharedUserData(registrations);
         userPropertiesControl.SetUserControlData(registrations, true);
         return(true);
     }
     return(true);
 }
Exemplo n.º 9
0
        /// <summary>
        /// UpdateActionPanelItems method implmentation
        /// </summary>
        internal void UpdateActionPanelItems(RegistrationList lst)
        {
            Nullable <bool> enb = null;

            SelectionData.ActionsPaneItems.Clear();
            foreach (Registration reg in lst)
            {
                if (!enb.HasValue)
                {
                    enb = reg.Enabled;
                }
                else if (enb.Value != reg.Enabled)
                {
                    enb = null;
                }
            }
            if (enb.HasValue)
            {
                if (!enb.Value)
                {
                    SelectionData.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action(res.USERSFRMACTIVATE, res.USERSFRMACTIVATEDESC, -1, "EnableUser"));
                }
                else
                {
                    SelectionData.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action(res.USERSFRMDEACTIVATE, res.USERSFRMDEACTIVATEDESC, -1, "DisableUser"));
                }
                SelectionData.ActionsPaneItems.Add(new Microsoft.ManagementConsole.ActionSeparator());
            }
            SelectionData.ActionsPaneItems.Add(new Microsoft.ManagementConsole.Action(res.USERSFRMPROPERTIES, res.USERSFRMPROPERTIESDESC, -1, "PropertyUser"));
        }
Exemplo n.º 10
0
        public void SaveItems(RegistrationList list)
        {
            foreach (Registration item in list)
            {
                string strDdlCarName = string.Format("{0}$ddlCar{1}", this.UniqueID, item.ID);
                string strddlCarVal  = Request.Form[strDdlCarName];

                if (string.IsNullOrEmpty(strddlCarVal))
                {
                    continue;
                }

                string strDdlCarColName = string.Format("{0}$ddlCarCol{1}", this.UniqueID, item.ID);
                string strddlCarColVal  = Request.Form[strDdlCarColName];

                item.Carriers.SetChecked((CarrierType)(Convert.ToInt32(strddlCarVal)), true);
                Carrier carr = item.Carriers.CheckedCarrier();
                carr.Collect = (CarrierCollect)(Convert.ToInt32(strddlCarColVal));
                foreach (ObjType itemObj in item.ObjectTypeList.GetEnumeratorOnlyAvailably)
                {
                    itemObj.Checked = true;
                }
                item.Save();
            }
        }
Exemplo n.º 11
0
        /// <summary>
        /// DeleteUserData method implementation
        /// </summary>
        internal bool DeleteUserData(RegistrationList registrations)
        {
            bool ret = MMCService.DeleteUser(registrations);

            DeleteRows(registrations);
            return(ret);
        }
Exemplo n.º 12
0
 /// <summary>
 /// EnableDisableRows method implementation
 /// </summary>
 private void EnableDisableRows(RegistrationList registrations)
 {
     RefreshData(true);
     if (this.DataSelectionChanged != null)
     {
         this.DataSelectionChanged(this, new SelectionDataEventArgs(GetSelectedUsers(), MMCListAction.SelectionChanged));
     }
 }
 /// <summary>
 /// SetUser method implementation
 /// </summary>
 public static void SetUser(RegistrationList registrations)
 {
     EnsureService();
     foreach (Registration reg in registrations)
     {
         ManagementService.SetUserRegistration(reg, false);
     }
 }
        InboundPipelineConfigurator(IServiceBus bus)
        {
            _subscriptionEventHandlers = new RegistrationList <ISubscriptionEvent>();
            _bus = bus;

            var router = new MessageRouter <IConsumeContext>();

            _pipeline = new InboundMessagePipeline(router, this);
        }
Exemplo n.º 15
0
 /// <summary>
 /// GetUserControlData method implmentation
 /// </summary>
 public RegistrationList GetUserControlData(RegistrationList lst)
 {
     foreach (Registration obj in lst)
     {
         ((Registration)obj).Enabled         = this.cbEnabled.Checked;
         ((Registration)obj).PreferredMethod = (PreferredMethod)((int)this.CBMethod.SelectedValue);
     }
     return(lst);
 }
        /// <summary>
        /// LoadSharedUserData method implementation
        /// </summary>
        internal virtual void LoadSharedUserData(IUserPropertiesDataObject control, bool disablesync = false)
        {
            if (usersFormView == null)
            {
                return;
            }
            RegistrationList registrations = GetSharedUserData();

            userPropertiesControl.SetUserControlData(registrations, disablesync);
        }
        /// <summary>
        /// GetData method implmentation
        /// </summary>
        public RegistrationList GetUserControlData(RegistrationList lst)
        {
            Registration obj = ((RegistrationList)lst)[0];

            ((Registration)obj).UPN             = this.UserName.Text;
            ((Registration)obj).MailAddress     = this.Email.Text;
            ((Registration)obj).PhoneNumber     = this.Phone.Text;
            ((Registration)obj).Enabled         = this.cbEnabled.Checked;
            ((Registration)obj).PreferredMethod = (PreferredMethod)((int)this.CBMethod.SelectedValue);
            return(lst);
        }
        /// <summary>
        /// DisableUser method implmentation
        /// </summary>
        public static RegistrationList DisableUser(RegistrationList registrations)
        {
            EnsureService();
            RegistrationList lst = new RegistrationList();

            foreach (Registration reg in registrations)
            {
                lst.Add(ManagementService.DisableUserRegistration(reg));
            }
            return(lst);
        }
        /// <summary>
        /// GetUser method implementation
        /// </summary>
        internal static RegistrationList GetUser(RegistrationList registrations)
        {
            EnsureService();
            RegistrationList lst = new RegistrationList();

            foreach (Registration reg in registrations)
            {
                Registration ret = ManagementService.GetUserRegistration(reg.UPN);
                lst.Add(ret);
            }
            return(lst);
        }
Exemplo n.º 20
0
        private void LoadNotification()
        {
            registrationListGlobal = new RegistrationList(UserDataContext.GetUserDataContext(), WebRootPath.Instance.ToString());
            registrationListGlobal.Load(false, null, null, null, 0, null, null, UserProfile.Current.UserId, true);

            registrationListLocal = new RegistrationList(UserDataContext.GetUserDataContext(), WebRootPath.Instance.ToString());
            registrationListLocal.Load(false, null, null, null, 0, null, null, UserProfile.Current.UserId, false);

            PrintGlobalNotifications(PhGlobal);
            PrintSpecificNotifications(PhMyObjects, true);
            PrintSpecificNotifications(PhOtherObjects, false);
        }
Exemplo n.º 21
0
        /// <summary>
        /// BTNReinit_Click event
        /// </summary>
        private void BTNReinit_Click(object sender, EventArgs e)
        {
            RegistrationList lst = userPropertyPage.GetSharedUserData();

            foreach (Registration reg in lst)
            {
                MMCService.NewUserKey(reg.UPN);
            }
            if (!SyncDisabled)
            {
                userPropertyPage.SyncSharedUserData(this, true);
            }
        }
Exemplo n.º 22
0
        public ActionResult Create(RegistrationList registrationList, string confirm = "no")
        {
            //Определяем информацию о рейса
            var      date    = db.Flights.FirstOrDefault(s => s.id == registrationList.FlightID);
            DateTime DF      = date.FlightDate;
            string   dp      = date.Departure;
            string   ar      = date.Arrival;
            var      pfromto = db.RegistrationLists.Include(f => f.Flight);

            //Проверяем есть ли такой пассажир на других рейсах в выбранную дату
            var pany = pfromto.Where(s => s.Flight.FlightDate == DF && s.Flight.Departure == dp && s.Flight.Arrival == ar && s.PassengerID == registrationList.PassengerID);

            if (pany.Count() > 0)
            {
                return(Json("Этот пассажир уже зарегистрирован на рейсе № " + pany.FirstOrDefault().Flight.FlightNum));
            }
            var total = db.RegistrationLists.Where(s => s.Flight.id == registrationList.FlightID);
            int qt    = db.Flights.Find(registrationList.FlightID).Number;

            if (total.Count() >= qt)
            {
                return(Json("На этом рейсе нет свободных мест для регистрации пассажира!"));
            }
            //Проверяем есть ли такой пассажир на встречных рейсах в выбранную дату
            var passengerany = pfromto.Where(s => s.Flight.FlightDate == DF && s.PassengerID == registrationList.PassengerID);

            if (passengerany.Count() > 0)
            {     //если нажали ок
                if (confirm == "yes")
                { //если мы нажали Ок на вопрос о добавлении, то пассажир будет добавлен на рейс
                    if (ModelState.IsValid)
                    {
                        db.RegistrationLists.Add(registrationList);
                        db.SaveChanges();
                    }
                    return(Json("Ok"));
                }
                else
                {//отправляем запрос на добавить его в список или нет
                    return(Json("Этот пассажир уже зарегистрирован на рейсе " + passengerany.FirstOrDefault().Flight.Departure.Trim() + " - " + passengerany.FirstOrDefault().Flight.Arrival.Trim() + "! Добавить его?"));
                }
            }

            //Проверяем количество зарегистрированных пассажиров и количество мест
            if (ModelState.IsValid)
            {
                db.RegistrationLists.Add(registrationList);
                db.SaveChanges();
            }
            return(Json("Ok"));
        }
Exemplo n.º 23
0
        public ActionResult Delete(int id, int FlightID, string all)
        {
            RegistrationList registrationList = db.RegistrationLists.Find(id);

            if (registrationList == null)
            {
                return(HttpNotFound());
            }

            db.RegistrationLists.Remove(registrationList);
            db.SaveChanges();

            return(Json(Url.Action("Registration", new { FlightID = FlightID, all = all }), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 24
0
        public MainWindow()
        {
            InitializeComponent();
            _registrationList = new RegistrationList();

            ctrlDisplayList.RegistrationList = _registrationList;
            _registrationList.RegistrationListChangeEvent += ctrlDisplayList.RegistrationList_ChangedEventHandler;
            _registrationList.RegistrationListChangeEvent += ctrlAdmissionStatistics.RegistrationList_ChangedEventHandler;
            _registrationList.RegistrationListChangeEvent += ctrlGenderStatistics.RegistrationList_ChangedEventHandler;

            _registrationList.RegisterStudent("Nadia Comanici", Gender.Woman, 10);
            _registrationList.RegisterStudent("Maria Popescu", Gender.Woman, 9.5);
            _registrationList.RegisterStudent("Andrei Ionescu", Gender.Man, 8);
            _registrationList.RegisterStudent("Valentin Pop", Gender.Man, 8.6);
        }
        /// <summary>
        /// DeleteUser method implmentation
        /// </summary>
        public static bool DeleteUser(RegistrationList registrations)
        {
            EnsureService();
            bool _ret = true;

            foreach (Registration reg in registrations)
            {
                bool tmp = ManagementService.DeleteUserRegistration(reg);
                if (!tmp)
                {
                    _ret = false;
                }
            }
            return(_ret);
        }
        /// <summary>
        /// Retrieves all registrations.
        /// </summary>
        /// <returns></returns>
        public async Task <List <RegistrationDescription> > ReadAllRegistrations()
        {
            HttpClient hc = GetClient("registrations");

            try
            {
                HttpResponseMessage response = await hc.GetAsync(string.Empty);

                response.EnsureSuccessStatusCode();
                return(RegistrationList.Convert(await response.Content.ReadAsStringAsync()));
            }
            catch (Exception e)
            {
                throw (new Exception("Error on service call", e));
            }
        }
Exemplo n.º 27
0
        public void IndividualDetailsTestMethod()
        {
            this.LoginToRegistrationList(Properties.Settings.Default.UserAteam1, Properties.Settings.Default.PasswordAteam1);
            var regList = new RegistrationList(this.driver);

            regList.RegistrationLink.Click();
            Thread.Sleep(1000);
            regList.GoToIndividualDetailsOfRecord(1);
            var indDetails = new IndividualDetails(this.driver);

            Assert.IsFalse(indDetails.AttributeConfirmed.Selected);
            indDetails.AttributeConfirmed.Click();
            this.driver.AlertHandling();
            Thread.Sleep(500);
            Assert.IsTrue(indDetails.AttributeConfirmed.Selected);
        }
Exemplo n.º 28
0
        /// <summary>
        /// OnAddPropertyPages method implementation
        /// </summary>
        protected override void OnAddPropertyPages(PropertyPageCollection propertyPageCollection)
        {
            Random           rand          = new Random();
            int              i             = rand.Next();
            RegistrationList registrations = (RegistrationList)SelectionData.SelectionObject;

            if (registrations.Count > 1)
            {
                propertyPageCollection.Add(new UserPropertyPage(this, typeof(UserCommonPropertiesControl), i));
            }
            else
            {
                propertyPageCollection.Add(new UserPropertyPage(this, typeof(UserPropertiesControl), i));
                propertyPageCollection.Add(new UserPropertyPage(this, typeof(UserPropertiesKeysControl), i));
            }
        }
 /// <summary>
 /// SetData method implmentation
 /// </summary>
 public void SetUserControlData(RegistrationList lst, bool disablesync)
 {
     SyncDisabled = disablesync;
     try
     {
         Registration obj = ((RegistrationList)lst)[0];
         this.UserName.Text          = ((Registration)obj).UPN;
         this.Email.Text             = ((Registration)obj).MailAddress;
         this.Phone.Text             = ((Registration)obj).PhoneNumber;
         this.cbEnabled.Checked      = ((Registration)obj).Enabled;
         this.CBMethod.SelectedValue = (PreferredMethod)(((Registration)obj).PreferredMethod);
     }
     finally
     {
         SyncDisabled = false;
     }
 }
Exemplo n.º 30
0
        private static Common.Plane GeneratePlane()
        {
            int passengerCount = RandomGen.Next(1, Common.Plane.PassengerCapacity + 1);

            string planeId = Guid.NewGuid().ToString();
            //OpenRegistration?flightId={flightId}
            string URL = String.Format("{0}/OpenRegistration?flightId={1}", ServiceStrings.RegStand, planeId);

            Util.MakeRequest(URL);
            URL = String.Format("{0}/GeneratePassengers?id={1}&count={2}", ServiceStrings.Passenger, planeId, passengerCount);
            string           passengerString  = Util.MakeRequest(URL);
            RegistrationList registrationList = JsonConvert.DeserializeObject <RegistrationList>(passengerString);
            int fuelCount = RandomGen.Next(Common.Plane.MIN_GENERATED_FUEL, Common.Plane.MAX_GENERATED_FUEL + 1);

            Common.Plane plane = new Common.Plane(planeId, registrationList.Passengers, registrationList.CargoCount, fuelCount);
            return(plane);
        }
Exemplo n.º 31
0
        public string GeneratePassengers(string flightId, int passengerCount)
        {
            List <Common.Passenger> planePassengers  = GeneratePlanePassengers(flightId, passengerCount);
            List <Common.Passenger> groundPassengers = GenerateGroundPassengers(flightId);

            lock (PassengerHandler.Passengers)
            {
                PassengerHandler.Passengers.AddRange(planePassengers);
                PassengerHandler.Passengers.AddRange(groundPassengers);
            }

            RegistrationList registrationList = new RegistrationList(flightId);

            registrationList.Passengers = planePassengers.Select(x => x.Id).ToList();
            registrationList.CargoCount = planePassengers.Sum(x => x.CargoCount);
            return(JsonConvert.SerializeObject(registrationList));
        }
        public object Get()
        {
            var vms = Repository.Instance.OpenSession().Query<RegistrationViewModel>();
            var registrations = new RegistrationList();
            foreach (var vm in vms)
            {
                Registration registration;
                try
                {
                    registration = Mapper.Map<RegistrationViewModel, Registration>(vm);
                }
                catch (Exception)
                {
                    throw;
                }
                registrations.Add(registration);
            }

            return registrations;
        }
Exemplo n.º 33
0
        public INancyApplication Bootstrap()
        {
            var container = Container;

            var registrationList = Registrations;
            registrationList.Add<INancyRegistrar>();
            registrationList.Add<INancyComponent>();

            _finder.AddAssembly(typeof(NancyBootstrapper).Assembly);
            ProcessRegistrationList(registrationList, _finder);

            var registrations = container.Resolve<IEnumerable<INancyRegistrar>>();

            if (registrations != null && registrations.Count() > 0)
            {
                foreach (var registration in registrations)
                {
                    registration.Register(container);
                }
            }

            var componentRegistrations = new RegistrationList();
            var components = container.Resolve<IEnumerable<INancyComponent>>();
            foreach (var component in components)
            {
                component.AddRegistrations(componentRegistrations);
            }
            ProcessRegistrationList(componentRegistrations, _finder);

            container.RegisterIfNone<INancyContainer>(container);

            var application = container.Resolve<INancyApplication>();
            foreach (var component in components)
            {
                component.Initialize(application);
            }
            return application;
        }
 public void AddRegistrations(RegistrationList registrations)
 {
     registrations.Add<IViewEngineRegistry>();
     registrations.Add<IViewLocator>();
 }
Exemplo n.º 35
0
        private void ProcessRegistrationList(RegistrationList registrationList, TypeFinder finder)
        {
            foreach (var registration in registrationList)
            {
                var serviceType = registration.ServiceType;
                var handler = registration.Handler;
                var typeFilter = registration.TypeFilter;

                var registrationTypes = finder.Types.Where(type => typeFilter(type, serviceType)).AsEnumerable();

                foreach (Type type in registrationTypes)
                {
                    handler(this.Container, serviceType, type);
                }
            }
        }
Exemplo n.º 36
0
 public void AddRegistrations(RegistrationList registrations)
 {
     registrations.Add<NancyModule>();
 }