I am using the restricted operations example source to build another.
all I want is
when user selects a file and change the state a event is fired and in that I want to get the details of the selected file.
private void RestrictOperation(WebServiceCommandEventArgs eventArgs, string eventName) { RestrictSettings settings = RestrictSettings.Load(); //Here I want to get the selected file }
You'll notice that RestrictionOperation takes a WebServiceCommandEventArgs (a base class). But you'll notice that the methods that are registered as eventHandlers take more specific (derived) WebServiceCommandEventArgs classes. For example, look at the Snippet
UpdateFileLifecycleStateEvents_GetRestrictions. It takes the UpdateFileLifeCycleStateCommandEventArgs which has an array of FileMasterIds. Each WebServiceCommandEvent has event args that have information that is specific to that api.
Hope that helps,
- Matt
Thanks for the information.
Is there any way to get the logged in user details or file details. Any code snippet would be helpfull.