private void application_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(typeof(CustomLogonParameters)); if (e.ObjectSpace is NonPersistentObjectSpace) { IObjectSpace objectSpaceCompany = ((XafApplication)sender).CreateObjectSpace(typeof(Company)); ((NonPersistentObjectSpace)e.ObjectSpace).AdditionalObjectSpaces.Add(objectSpaceCompany); } }
//Custom Login private static void application_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(typeof(CustomLogonParameters)); //if (e.ObjectSpace is NonPersistentObjectSpace) //{ // IObjectSpace objectSpaceEmployee = ((XafApplication)sender).CreateObjectSpace(typeof(Company)); // ((NonPersistentObjectSpace)e.ObjectSpace).AdditionalObjectSpaces.Add(objectSpaceEmployee); //} }
private void DCSecurityDemoAspNetApplication_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = CreateObjectSpace(); ((DCSecurityDemoAuthenticationLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }
static void application_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(); ((MyLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }
static void application_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(); ((MyLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }
private void Instance_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(); ((SecurityDemoAuthenticationLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }
private void DCSecurityDemoAspNetApplication_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = CreateObjectSpace(); ((DCSecurityDemoAuthenticationLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }
void application_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { XafApplication application = sender as XafApplication; if (application != null) { IObjectSpace objectSpace = application.CreateObjectSpace(); ((MitsarDataStudio.Module.Security.CustomLogonParameters)e.LogonParameters).ObjectSpace = objectSpace; e.ObjectSpace = objectSpace; } }
private void Instance_CreateCustomLogonWindowObjectSpace(object sender, CreateCustomLogonWindowObjectSpaceEventArgs e) { e.ObjectSpace = ((XafApplication)sender).CreateObjectSpace(); ((SecurityDemoAuthenticationLogonParameters)e.LogonParameters).ObjectSpace = e.ObjectSpace; }