public SpatialCoordinateLocalizationSession(SpatialAnchorsLocalizer localizer, SpatialAnchorsCoordinateService coordinateService, SpatialAnchorsConfiguration configuration, IPeerConnection peerConnection) : base()
 {
     this.localizer         = localizer;
     this.coordinateService = coordinateService;
     this.configuration     = configuration;
     this.coordinateIdentifierTaskSource = new TaskCompletionSource <string>();
     this.peerConnection = peerConnection;
 }
 public static bool TryDeserialize(BinaryReader reader, out SpatialAnchorsConfiguration configuration)
 {
     try
     {
         configuration = new SpatialAnchorsConfiguration
         {
             AccountDomain       = reader.ReadString(),
             AccountId           = reader.ReadString(),
             AccountKey          = reader.ReadString(),
             AccessToken         = reader.ReadString(),
             AuthenticationToken = reader.ReadString(),
             IsCoordinateCreator = reader.ReadBoolean()
         };
         return(true);
     }
     catch
     {
         configuration = null;
         return(false);
     }
 }