public bool IsRequestProcessingStarted(UserContext userContext)
 {
     return(this.customAuthorizationHandler.IsRequestProcessingStarted(userContext));
 }
 public void SetRequestProcessingState(UserContext userContext, bool requestProcessingState)
 {
     this.customAuthorizationHandler.SetRequestProcessingState(userContext, requestProcessingState);
 }
 public int IncrementCmdletExecutionCount(UserContext userContext)
 {
     return(this.customAuthorizationHandler.IncrementCmdletExecutionCount(userContext));
 }
 public bool IsAuthorized(UserContext userContext, Uri resourceUri)
 {
     return(this.customAuthorizationHandler.IsAuthorized(userContext, resourceUri));
 }
 public Envelope <Microsoft.Management.Odata.Schema.Schema, UserContext> GetSchema(UserContext userContext, string membershipId)
 {
     return(this.schemaStore.Borrow(userContext, membershipId));
 }
 public UserQuota GetUserQuota(UserContext userContext)
 {
     return(this.customAuthorizationHandler.GetUserQuota(userContext));
 }
 public IReferenceSetCommand GetReferenceSetCommand(CommandType commandType, UserContext userContext, ResourceProperty property, EntityMetadata entityMetadata, string membershipId, ResourceType entityType = null)
 {
     return(this.cmdManagers[entityMetadata.MgmtSystem].GetReferenceSetCommand(commandType, userContext, property, entityMetadata, membershipId, entityType));
 }
 public string GetMembershipId(UserContext userContext, Uri resourceUri)
 {
     return(this.customAuthorizationHandler.GetMembershipId(userContext, resourceUri));
 }
 public ICommand GetCommand(CommandType commandType, UserContext userContext, ResourceType entityType, EntityMetadata entityMetadata, string membershipId)
 {
     return(this.cmdManagers[entityMetadata.MgmtSystem].GetCommand(commandType, userContext, entityType, entityMetadata, membershipId));
 }
Esempio n. 10
0
 public SafeRefCountedContainer <WindowsIdentity> GetAuthorizedUserIdentity(UserContext userContext)
 {
     return(this.customAuthorizationHandler.GetAuthorizedUserIdentity(userContext));
 }
Esempio n. 11
0
 public DataContext(Microsoft.Management.Odata.Schema.Schema userSchema, UserContext userContext, string membershipId)
 {
     this.UserSchema   = userSchema;
     this.UserContext  = userContext;
     this.MembershipId = membershipId;
 }