Ejemplo n.º 1
0
 internal static Task <TResult> SaveAsync <TResult>(Guid sheetId, string contentType, byte [] sheet, Guid integrationId,
                                                    EastFive.Security.SessionServer.Persistence.DataContext dataContext,
                                                    Func <TResult> onSaved,
                                                    Func <TResult> onAlreadyExists)
 {
     return(Persistence.Content.CreateAsync(sheetId, contentType, sheet,
                                            onSaved,
                                            onAlreadyExists));
 }
Ejemplo n.º 2
0
 internal PasswordCredentials(Context context, EastFive.Security.SessionServer.Persistence.DataContext dataContext)
 {
     this.dataContext = dataContext;
     this.context     = context;
     // TODO: Refactor this class so it works with any Management Provider
     context.GetManagementProvider(Enum.GetName(typeof(CredentialValidationMethodTypes), CredentialValidationMethodTypes.Password),
                                   (identityService) =>
     {
         this.managmentProvider = identityService;
         return(true);
     },
                                   () => false,
                                   (why) => false);
 }