示例#1
0
 /// <summary>
 /// Creates an advertiser without a broadcaster.
 /// </summary>
 /// <returns>An advertiser</returns>
 public static IAdvertiser Create()
 {
     return(new Advertiser
     {
         Broadcaster = NullAdvertisementBroadcaster.Create()
     });
 }
示例#2
0
 /// <summary>
 /// Set the advertiser's broadcaster object.
 /// </summary>
 void IAdvertiser.SetBroadcaster(IAdvertisementBroadcaster broadcaster)
 {
     Broadcaster = broadcaster ?? NullAdvertisementBroadcaster.Create();
 }