Ejemplo n.º 1
0
        private System.IAsyncResult OnBeginSearchPrincipals(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            string searchText = ((string)(inValues[0]));
            int    maxResults = ((int)(inValues[1]));

            excel_create.PeopleWS.SPPrincipalType principalType = ((excel_create.PeopleWS.SPPrincipalType)(inValues[2]));
            return(this.BeginSearchPrincipals(searchText, maxResults, principalType, callback, asyncState));
        }
Ejemplo n.º 2
0
        private System.IAsyncResult OnBeginResolvePrincipals(object[] inValues, System.AsyncCallback callback, object asyncState)
        {
            excel_create.PeopleWS.ArrayOfString   principalKeys = ((excel_create.PeopleWS.ArrayOfString)(inValues[0]));
            excel_create.PeopleWS.SPPrincipalType principalType = ((excel_create.PeopleWS.SPPrincipalType)(inValues[1]));
            bool addToUserInfoList = ((bool)(inValues[2]));

            return(this.BeginResolvePrincipals(principalKeys, principalType, addToUserInfoList, callback, asyncState));
        }
Ejemplo n.º 3
0
 public void SearchPrincipalsAsync(string searchText, int maxResults, excel_create.PeopleWS.SPPrincipalType principalType, object userState)
 {
     if ((this.onBeginSearchPrincipalsDelegate == null))
     {
         this.onBeginSearchPrincipalsDelegate = new BeginOperationDelegate(this.OnBeginSearchPrincipals);
     }
     if ((this.onEndSearchPrincipalsDelegate == null))
     {
         this.onEndSearchPrincipalsDelegate = new EndOperationDelegate(this.OnEndSearchPrincipals);
     }
     if ((this.onSearchPrincipalsCompletedDelegate == null))
     {
         this.onSearchPrincipalsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSearchPrincipalsCompleted);
     }
     base.InvokeAsync(this.onBeginSearchPrincipalsDelegate, new object[] {
         searchText,
         maxResults,
         principalType
     }, this.onEndSearchPrincipalsDelegate, this.onSearchPrincipalsCompletedDelegate, userState);
 }
Ejemplo n.º 4
0
 public void SearchPrincipalsAsync(string searchText, int maxResults, excel_create.PeopleWS.SPPrincipalType principalType)
 {
     this.SearchPrincipalsAsync(searchText, maxResults, principalType, null);
 }
Ejemplo n.º 5
0
 private System.IAsyncResult BeginSearchPrincipals(string searchText, int maxResults, excel_create.PeopleWS.SPPrincipalType principalType, System.AsyncCallback callback, object asyncState)
 {
     excel_create.PeopleWS.SearchPrincipalsRequest inValue = new excel_create.PeopleWS.SearchPrincipalsRequest();
     inValue.Body               = new excel_create.PeopleWS.SearchPrincipalsRequestBody();
     inValue.Body.searchText    = searchText;
     inValue.Body.maxResults    = maxResults;
     inValue.Body.principalType = principalType;
     return(((excel_create.PeopleWS.PeopleSoap)(this)).BeginSearchPrincipals(inValue, callback, asyncState));
 }
Ejemplo n.º 6
0
 public void ResolvePrincipalsAsync(excel_create.PeopleWS.ArrayOfString principalKeys, excel_create.PeopleWS.SPPrincipalType principalType, bool addToUserInfoList, object userState)
 {
     if ((this.onBeginResolvePrincipalsDelegate == null))
     {
         this.onBeginResolvePrincipalsDelegate = new BeginOperationDelegate(this.OnBeginResolvePrincipals);
     }
     if ((this.onEndResolvePrincipalsDelegate == null))
     {
         this.onEndResolvePrincipalsDelegate = new EndOperationDelegate(this.OnEndResolvePrincipals);
     }
     if ((this.onResolvePrincipalsCompletedDelegate == null))
     {
         this.onResolvePrincipalsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnResolvePrincipalsCompleted);
     }
     base.InvokeAsync(this.onBeginResolvePrincipalsDelegate, new object[] {
         principalKeys,
         principalType,
         addToUserInfoList
     }, this.onEndResolvePrincipalsDelegate, this.onResolvePrincipalsCompletedDelegate, userState);
 }
Ejemplo n.º 7
0
 public void ResolvePrincipalsAsync(excel_create.PeopleWS.ArrayOfString principalKeys, excel_create.PeopleWS.SPPrincipalType principalType, bool addToUserInfoList)
 {
     this.ResolvePrincipalsAsync(principalKeys, principalType, addToUserInfoList, null);
 }
Ejemplo n.º 8
0
 private System.IAsyncResult BeginResolvePrincipals(excel_create.PeopleWS.ArrayOfString principalKeys, excel_create.PeopleWS.SPPrincipalType principalType, bool addToUserInfoList, System.AsyncCallback callback, object asyncState)
 {
     excel_create.PeopleWS.ResolvePrincipalsRequest inValue = new excel_create.PeopleWS.ResolvePrincipalsRequest();
     inValue.Body = new excel_create.PeopleWS.ResolvePrincipalsRequestBody();
     inValue.Body.principalKeys     = principalKeys;
     inValue.Body.principalType     = principalType;
     inValue.Body.addToUserInfoList = addToUserInfoList;
     return(((excel_create.PeopleWS.PeopleSoap)(this)).BeginResolvePrincipals(inValue, callback, asyncState));
 }
Ejemplo n.º 9
0
 public SearchPrincipalsRequestBody(string searchText, int maxResults, excel_create.PeopleWS.SPPrincipalType principalType)
 {
     this.searchText    = searchText;
     this.maxResults    = maxResults;
     this.principalType = principalType;
 }
Ejemplo n.º 10
0
 public ResolvePrincipalsRequestBody(excel_create.PeopleWS.ArrayOfString principalKeys, excel_create.PeopleWS.SPPrincipalType principalType, bool addToUserInfoList)
 {
     this.principalKeys     = principalKeys;
     this.principalType     = principalType;
     this.addToUserInfoList = addToUserInfoList;
 }