public unsafe AlcsServer(global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServerConfig config) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/aliyun/alink/linksdk/alcs/api/server/AlcsServerConfig;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((config == null) ? IntPtr.Zero : ((global::Java.Lang.Object)config).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
static void n_SetServerConfig_Lcom_aliyun_alink_linksdk_alcs_api_server_AlcsServerConfig_(IntPtr jnienv, IntPtr native__this, IntPtr native_serverConfig) { global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServer __this = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServerConfig serverConfig = global::Java.Lang.Object.GetObject <global::Com.Aliyun.Alink.Linksdk.Alcs.Api.Server.AlcsServerConfig> (native_serverConfig, JniHandleOwnership.DoNotTransfer); __this.ServerConfig = serverConfig; }