示例#1
0
 /// <summary>
 /// Tries to send SetProperties request to set room properties.
 /// </summary>
 /// <param name="client">LoadBalancingClient instance to send the operation request.</param>
 /// <param name="roomProperties">Request declaration.</param>
 /// <returns></returns>
 public static bool OpSetPropertiesOfRoom(this LoadBalancingClient client, RoomPropertiesRequest roomProperties)
 {
     if (roomProperties == null)
     {
         return(false);
     }
     return(client.OpSetProperties(0, roomProperties.Properties,
                                   roomProperties.ExpectedProperties, roomProperties.WebFlags, roomProperties.SendPropertiesChangedEvent, roomProperties.SendOptions));
 }
示例#2
0
 /// <summary>
 /// Tries to send SetProperties request to set actor properties.
 /// </summary>
 /// <param name="client">LoadBalancingClient instance to send the operation request.</param>
 /// <param name="actorProperties">Request declaration.</param>
 /// <returns></returns>
 public static bool OpSetPropertiesOfActor(this LoadBalancingClient client, ActorPropertiesRequest actorProperties)
 {
     if (actorProperties == null)
     {
         return(false);
     }
     if (actorProperties.TargetActorNumber == 0)
     {
         return(false);
     }
     return(client.OpSetProperties(actorProperties.TargetActorNumber, actorProperties.Properties,
                                   actorProperties.ExpectedProperties, actorProperties.WebFlags, actorProperties.SendPropertiesChangedEvent, actorProperties.SendOptions));
 }