Beispiel #1
0
 public string GetServerUrl()
 {
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr length, out bool isNull, out NativeException ex) =>
     {
         isNull = false;
         return NativeMethods.get_server_url(this, buffer, length, out ex);
     }));
 }
Beispiel #2
0
 public string GetRealmPath(User user, string partition)
 {
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr bufferLength, out bool isNull, out NativeException ex) =>
     {
         isNull = false;
         return NativeMethods.get_path_for_realm(this, user.Handle, partition, (IntPtr)partition.Length, buffer, bufferLength, out ex);
     }));
 }
 public string GetRefreshToken()
 {
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr length, out bool isNull, out NativeException ex) =>
     {
         isNull = false;
         return NativeMethods.get_refresh_token(this, buffer, length, out ex);
     }));
 }
Beispiel #4
0
 public string GetDeviceId()
 {
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr length, out bool isNull, out NativeException ex) =>
     {
         isNull = false;
         return NativeMethods.get_device_id(this, buffer, length, out ex);
     }));
 }
 public static string GetRealmPath(User user, Uri serverUri)
 {
     DoInitialFileSystemConfiguration();
     return(MarshalHelpers.GetString((IntPtr buffer, IntPtr bufferLength, out bool isNull, out NativeException ex) =>
     {
         isNull = false;
         return NativeMethods.get_path_for_realm(user.Handle, serverUri.AbsoluteUri, (IntPtr)serverUri.AbsoluteUri.Length, buffer, bufferLength, out ex);
     }));
 }