예제 #1
0
        internal MI_Result NewSession(
            string protocol,
            string destination,
            MI_DestinationOptions options,
            MI_SessionCreationCallbacks callbacks,
            out MI_Instance extendedError,
            out MI_Session session
            )
        {
            if (callbacks != null)
            {
                throw new NotImplementedException();
            }

            MI_Instance extendedErrorLocal = MI_Instance.NewIndirectPtr();
            MI_Session  sessionLocal       = MI_Session.NewDirectPtr();

            MI_Result resultLocal = this.ft.NewSession(this,
                                                       protocol,
                                                       destination,
                                                       options,
                                                       null,
                                                       extendedErrorLocal,
                                                       sessionLocal);

            extendedError = extendedErrorLocal;
            session       = sessionLocal;
            return(resultLocal);
        }
예제 #2
0
        internal MI_Result NewDestinationOptions(
            out MI_DestinationOptions options
            )
        {
            MI_DestinationOptions optionsLocal = MI_DestinationOptions.NewDirectPtr();
            MI_Result             resultLocal  = this.ft.NewDestinationOptions(this,
                                                                               optionsLocal);

            options = optionsLocal;
            return(resultLocal);
        }
예제 #3
0
        internal MI_Result Clone(
            out MI_DestinationOptions newDestinationOptions
            )
        {
            MI_DestinationOptions newDestinationOptionsLocal =
                MI_DestinationOptions.NewIndirectPtr();

            MI_Result resultLocal = this.ft.Clone(this,
                                                  newDestinationOptionsLocal);

            newDestinationOptions = newDestinationOptionsLocal;
            return(resultLocal);
        }