예제 #1
0
        /// <summary>
        /// Removes the named flag.
        /// </summary>
        /// <param name="appId">identifies the application to use.</param>
        /// <param name="flag">unique string identifier for this flag.</param>
        public void RemoveFlag(string appId, string flag)
        {
            var flagIdType = new FullyQualifiedFlagIDType {
                applicationID = appId, flagID = flag
            };

            syncSvc.removeFlag(flagIdType);
        }
예제 #2
0
        /// <summary>
        /// Creates a new flag, identified by flagID, that is associated with the named application.
        /// </summary>
        /// <param name="appId">identifies the application to use.</param>
        /// <param name="flag">unique string identifier for this flag.</param>
        /// <returns>Trues if successful, false if flag is already set.</returns>
        public bool SetFlag(string appId, string flag)
        {
            var flagIdType = new FullyQualifiedFlagIDType {
                applicationID = appId, flagID = flag
            };

            return(syncSvc.setFlag(flagIdType));
        }
예제 #3
0
 /// <summary>
 /// Creates a new flag, identified by flagID, that is associated with the named application.
 /// </summary>
 /// <param name="appId">identifies the application to use.</param>
 /// <param name="flag">unique string identifier for this flag.</param>
 /// <returns>Trues if successful, false if flag is already set.</returns>
 public bool SetFlag(string appId, string flag)
 {
     var flagIdType = new FullyQualifiedFlagIDType {applicationID = appId, flagID = flag};
     return syncSvc.setFlag(flagIdType);
 }
예제 #4
0
 /// <summary>
 /// Removes the named flag.
 /// </summary>
 /// <param name="appId">identifies the application to use.</param>
 /// <param name="flag">unique string identifier for this flag.</param>
 public void RemoveFlag(string appId, string flag)
 {
     var flagIdType = new FullyQualifiedFlagIDType {applicationID = appId, flagID = flag};
     syncSvc.removeFlag(flagIdType);
 }
예제 #5
0
 /// <remarks/>
 public void setFlagAsync(FullyQualifiedFlagIDType setFlagInput, object userState)
 {
     if ((this.setFlagOperationCompleted == null))
     {
         this.setFlagOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetFlagOperationCompleted);
     }
     this.InvokeAsync("setFlag", new object[] {
                 setFlagInput}, this.setFlagOperationCompleted, userState);
 }
예제 #6
0
 /// <remarks/>
 public void setFlagAsync(FullyQualifiedFlagIDType setFlagInput)
 {
     this.setFlagAsync(setFlagInput, null);
 }
예제 #7
0
 /// <remarks/>
 public void removeFlagAsync(FullyQualifiedFlagIDType removeFlagInput)
 {
     this.removeFlagAsync(removeFlagInput, null);
 }
예제 #8
0
 /// <remarks/>
 public System.IAsyncResult BeginsetFlag(FullyQualifiedFlagIDType setFlagInput, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("setFlag", new object[] {
                 setFlagInput}, callback, asyncState);
 }