Exemple #1
0
        public void RemoteGroupClass()
        {
            var group    = new RemoteGroup <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object>();
            var type     = group.GetType().GetTypeInfo();
            var accessor = new RemoteGroupAccessor();

            var prefixes = new Dictionary <string, int> {
                ["K"] = 8,
                ["T"] = 8,
                ["G"] = 8
            };

            foreach (var prefix in prefixes.Keys)
            {
                for (var index = 0; index < prefixes[prefix]; index++)
                {
                    var value = new Object();
                    type.GetDeclaredField(prefix + index).SetValue(group, value);
                    Assert.Same(value, accessor.Read(group, prefix + index));
                }
            }
        }
 public RemoteGroup updateGroup(string in0, RemoteGroup in1) {
     object[] results = this.Invoke("updateGroup", new object[] {
                 in0,
                 in1});
     return ((RemoteGroup)(results[0]));
 }
 /// <remarks/>
 public void removeUserFromGroupAsync(string in0, RemoteGroup in1, RemoteUser in2, object userState) {
     if ((this.removeUserFromGroupOperationCompleted == null)) {
         this.removeUserFromGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnremoveUserFromGroupOperationCompleted);
     }
     this.InvokeAsync("removeUserFromGroup", new object[] {
                 in0,
                 in1,
                 in2}, this.removeUserFromGroupOperationCompleted, userState);
 }
 /// <remarks/>
 public void removeUserFromGroupAsync(string in0, RemoteGroup in1, RemoteUser in2) {
     this.removeUserFromGroupAsync(in0, in1, in2, null);
 }
 public void removeUserFromGroup(string in0, RemoteGroup in1, RemoteUser in2) {
     this.Invoke("removeUserFromGroup", new object[] {
                 in0,
                 in1,
                 in2});
 }
 /// <remarks/>
 public void addUserToGroupAsync(string in0, RemoteGroup in1, RemoteUser in2) {
     this.addUserToGroupAsync(in0, in1, in2, null);
 }
 public void addUserToGroup(string in0, RemoteGroup in1, RemoteUser in2) {
     this.Invoke("addUserToGroup", new object[] {
                 in0,
                 in1,
                 in2});
 }
 /// <remarks/>
 public System.IAsyncResult BeginupdateGroup(string in0, RemoteGroup in1, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("updateGroup", new object[] {
                 in0,
                 in1}, callback, asyncState);
 }
Exemple #9
0
 public RemoteGroup UpdateGroup(string in0, RemoteGroup in1)
 {
     throw new NotImplementedException();
 }
Exemple #10
0
 public void RemoveUserFromGroup(string in0, RemoteGroup in1, RemoteUser in2)
 {
     throw new NotImplementedException();
 }
Exemple #11
0
 public RemoteGroup UpdateGroup(string in0, RemoteGroup in1)
 {
     return(_client.updateGroup(in0, in1));
 }
Exemple #12
0
 public void RemoveUserFromGroup(string in0, RemoteGroup in1, RemoteUser in2)
 {
     _client.removeUserFromGroup(in0, in1, in2);
 }
Exemple #13
0
 public void AddUserToGroup(string in0, RemoteGroup in1, RemoteUser in2)
 {
     _client.addUserToGroup(in0, in1, in2);
 }
 /// <remarks/>
 public void updateGroupAsync(string in0, RemoteGroup in1) {
     this.updateGroupAsync(in0, in1, null);
 }
Exemple #15
0
 public void AddUserToGroup(string in0, RemoteGroup in1, RemoteUser in2)
 {
     throw new NotImplementedException();
 }
 /// <remarks/>
 public void updateGroupAsync(string in0, RemoteGroup in1, object userState) {
     if ((this.updateGroupOperationCompleted == null)) {
         this.updateGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupdateGroupOperationCompleted);
     }
     this.InvokeAsync("updateGroup", new object[] {
                 in0,
                 in1}, this.updateGroupOperationCompleted, userState);
 }
 /// <remarks/>
 public System.IAsyncResult BeginremoveUserFromGroup(string in0, RemoteGroup in1, RemoteUser in2, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("removeUserFromGroup", new object[] {
                 in0,
                 in1,
                 in2}, callback, asyncState);
 }